Skip to content

Commit d4c377b

Browse files
2 parents 1f32f8a + 305deea commit d4c377b

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ OS=MINGW
5353
XDR=
5454
endif
5555

56+
ifeq ($(findstring Darwin,$(OS)),Darwin)
57+
# Apple has removed TR1, but not set the C++ standard :P
58+
FLAGS+=-std=c++11
59+
endif
60+
5661
FLAGS+=-I/usr/X11R6/include
5762

5863
ifdef XDR

classdesc.h

+7-5
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ namespace std
5252
#endif
5353

5454

55-
/*
56-
Classdesc is now dependent on TR1. These can either
57-
be obtained from the compiler's standard library, or from Boost.
58-
TODO: check that this works with Boost!
59-
*/
55+
#if defined(__cplusplus) && __cplusplus<201103L
56+
/*
57+
Classdesc is now dependent on TR1. These can either
58+
be obtained from the compiler's standard library, or from Boost.
59+
TODO: check that this works with Boost!
60+
*/
6061
#ifdef TR1
6162
#include <tr1/type_traits>
6263
#if !defined(__ICC) || __ICC > 1100 //tr1 shared_ptr impl not functional with icc 10.1
@@ -66,6 +67,7 @@ namespace std
6667
#include <boost/tr1/type_traits.hpp>
6768
#include <boost/tr1/memory.hpp>
6869
#endif
70+
#endif
6971

7072
/** \namespace classdesc \brief Contains definitions related to
7173
classdesc functionality

0 commit comments

Comments
 (0)