From 35f2af947c02bdf639c4dae29fb6b104e6633197 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 19 Apr 2008 16:28:00 +0000 Subject: [PATCH] Changed #includes to avoid circular dependencies between shared_ptr and TR1. [SVN r44595] --- include/boost/detail/shared_count.hpp | 7 +++++-- include/boost/shared_ptr.hpp | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/include/boost/detail/shared_count.hpp b/include/boost/detail/shared_count.hpp index 1eae671..4a71f20 100644 --- a/include/boost/detail/shared_count.hpp +++ b/include/boost/detail/shared_count.hpp @@ -28,8 +28,11 @@ #include #include #include - -#include // std::auto_ptr +// In order to avoid circular dependencies with Boost.TR1 +// we make sure that our include of doesn't try to +// pull in the TR1 headers: that's why we use this header +// rather than including directly: +#include // std::auto_ptr #include // std::less #include // std::bad_alloc diff --git a/include/boost/shared_ptr.hpp b/include/boost/shared_ptr.hpp index 2c9c3e6..dc39c7a 100644 --- a/include/boost/shared_ptr.hpp +++ b/include/boost/shared_ptr.hpp @@ -20,7 +20,11 @@ #include #else -#include // for std::auto_ptr +// In order to avoid circular dependencies with Boost.TR1 +// we make sure that our include of doesn't try to +// pull in the TR1 headers: that's why we use this header +// rather than including directly: +#include // std::auto_ptr #include #include