From f0e359663f4ceca04e3704a911cbdf628e2b566d Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 16 Nov 2000 11:17:22 +0000 Subject: [PATCH] Fix for egcs 1.1.1 problems with std::auto_ptr [SVN r8225] --- include/boost/config.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/config.hpp b/include/boost/config.hpp index 10bbf582..8683317c 100644 --- a/include/boost/config.hpp +++ b/include/boost/config.hpp @@ -170,6 +170,10 @@ // GNU CC (also known as GCC and G++) --------------------------------------// # if defined __GNUC__ +# if __GNUC__ == 2 && __GNUC_MINOR__ == 91 + // egcs 1.1 won't parse smart_ptr.hpp without this: +# define BOOST_NO_AUTO_PTR +# endif # if __GNUC__ == 2 && __GNUC_MINOR__ <= 95 # include // not sure this is the right way to do this -JGS # if !defined(_CXXRT_STD) && !defined(__SGI_STL) // need to ask Dietmar about this -JGS @@ -396,3 +400,4 @@ namespace std { #endif // BOOST_CONFIG_HPP +