Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2008-04-19 04:42:25

A recent change in SVN head (whether directly to shared_ptr or something
else I'm not sure) has broken some of the TR1 tests:

The two patches below would fix this, but as ever I'm open to other/better

Cheers, John.

Index: C:/data/boost/boost/trunk/boost/detail/shared_count.hpp
--- C:/data/boost/boost/trunk/boost/detail/shared_count.hpp (revision 44538)
+++ C:/data/boost/boost/trunk/boost/detail/shared_count.hpp (working copy)
@@ -29,7 +29,7 @@
 #include <boost/detail/sp_counted_base.hpp>
 #include <boost/detail/sp_counted_impl.hpp>

-#include <memory> // std::auto_ptr
+#include <boost/config/no_tr1/memory.hpp> // std::auto_ptr
 #include <functional> // std::less
 #include <new> // std::bad_alloc

Index: C:/data/boost/boost/trunk/boost/shared_ptr.hpp
--- C:/data/boost/boost/trunk/boost/shared_ptr.hpp (revision 44538)
+++ C:/data/boost/boost/trunk/boost/shared_ptr.hpp (working copy)
@@ -20,7 +20,7 @@
 #include <boost/detail/shared_ptr_nmt.hpp>

-#include <memory> // for std::auto_ptr
+#include <boost/config/no_tr1/memory.hpp> // for std::auto_ptr

 #include <boost/assert.hpp>
 #include <boost/checked_delete.hpp>

Boost list run by bdawes at, gregod at, cpdaniel at, john at