Skip to content

Commit

Permalink
fix type_traits for OSX
Browse files Browse the repository at this point in the history
we are already using -std=c++11 -stdlib=libc++
  • Loading branch information
rogerwang committed Jul 22, 2016
1 parent 6aa7fef commit b0def1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <stdio.h>
#include <stdlib.h>

#ifdef __APPLE__
#include <tr1/type_traits> // NOLINT(build/c++tr1)
#if 0
#include <tr1/type_traits>
#else
#include <type_traits> // std::remove_reference
#endif
Expand All @@ -31,7 +31,7 @@ NO_RETURN void Abort();
NO_RETURN void Assert(const char* const (*args)[4]);
void DumpBacktrace(FILE* fp);

#ifdef __APPLE__
#if 0
template <typename T> using remove_reference = std::tr1::remove_reference<T>;
#else
template <typename T> using remove_reference = std::remove_reference<T>;
Expand Down

0 comments on commit b0def1b

Please sign in to comment.