Explorar o código

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

rdb %!s(int64=7) %!d(string=hai) anos
pai
achega
8a98bf42a3
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      dtool/src/dtoolbase/dtoolbase_cc.h

+ 5 - 0
dtool/src/dtoolbase/dtoolbase_cc.h

@@ -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;};