general: enable use of tie and tuple on macOS (from TR1, for now)

This commit is contained in:
rdb 2018-05-05 23:09:39 +02:00
parent 71eee6df3f
commit 8a98bf42a3

View File

@ -122,6 +122,11 @@ typedef ios::seekdir ios_seekdir;
// Apple has an outdated libstdc++. Not all is lost, though, as we can fill
// in some important missing functions.
#if defined(__GLIBCXX__) && __GLIBCXX__ <= 20070719
#include <tr1/tuple>
using std::tr1::tuple;
using std::tr1::tie;
typedef decltype(nullptr) nullptr_t;
template<class T> struct remove_reference {typedef T type;};