--- src/util.h.orig 2017-01-05 15:05:24.000000000 -0600
+++ src/util.h 2017-02-11 00:41:28.000000000 -0600
+// libc++ provides a C++11 <type_traits> header.
+#if defined(__APPLE__) && !defined(_LIBCPP_VERSION)
+#define USE_TR1_TYPE_TRAITS
+#ifdef USE_TR1_TYPE_TRAITS
#include <tr1/type_traits> // NOLINT(build/c++tr1)
#include <type_traits> // std::remove_reference
inline void* Malloc(size_t size);
inline void* Calloc(size_t n, size_t size);
+#ifdef USE_TR1_TYPE_TRAITS
template <typename T> using remove_reference = std::tr1::remove_reference<T>;
template <typename T> using remove_reference = std::remove_reference<T>;