known bug with GCC __cplusplus; refs #7

master
Marc Wäckerlin 11 years ago
parent fc12d84441
commit 9c2e2f4d52
  1. 10
      src/mrw/checkcxx11.hxx

@ -19,17 +19,21 @@
removed in future releases, when support for C++11 is more removed in future releases, when support for C++11 is more
common. Only rely on this workaround, if you really have to. */ common. Only rely on this workaround, if you really have to. */
# define MRW__OLD_PRE11_COMPILER # define MRW__OLD_PRE11_COMPILER
# warning You need a C++11 compliant compiler, on gcc use option -std=c++11 # warning you need a C++11 compliant compiler, on gcc use option -std=c++11
# warning emulating C++11 - this changes the way you use the library # warning emulating C++11 - this changes the way you use the library
# warning this is deprecated and will be removed in future releases # warning this is deprecated and will be removed in future releases
# warning refere to the library documentation for more details # warning refere to the library documentation for more details
# endif # endif
# endif # endif
# if __cplusplus==1
# warning your compiler has a know bug, please upgrade
# endif
# ifdef MRW__OLD_PRE11_COMPILER # ifdef MRW__OLD_PRE11_COMPILER
# if __cplusplus <= 199711 // __cplusplus==1 is a known bug in gcc 4.6.3
# warning compiler is older than 11/1997, emulate std::shared_ptr # if __cplusplus<200300L && __cplusplus!=1
# include <boost/shared_ptr.hpp> # include <boost/shared_ptr.hpp>
namespace std { namespace std {
// there is no std::shared_ptr in pre C++11 compilers, so we use the // there is no std::shared_ptr in pre C++11 compilers, so we use the

Loading…
Cancel
Save