Ticket #3986: config-smart_ptr.patch
File config-smart_ptr.patch, 5.2 KB (added by , 13 years ago) |
---|
-
boost/smart_ptr/shared_ptr.hpp
342 342 343 343 // Move support 344 344 345 #if defined( BOOST_HAS_RVALUE_REFS)345 #if !defined(BOOST_NO_RVALUE_REFERENCES) 346 346 347 347 shared_ptr( shared_ptr && r ): px( r.px ), pn() // never throws 348 348 { -
boost/smart_ptr/detail/shared_count.hpp
228 228 if( pi_ != 0 ) pi_->add_ref_copy(); 229 229 } 230 230 231 #if defined( BOOST_HAS_RVALUE_REFS)231 #if !defined(BOOST_NO_RVALUE_REFERENCES) 232 232 233 233 shared_count(shared_count && r): pi_(r.pi_) // nothrow 234 234 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) … … 335 335 336 336 // Move support 337 337 338 #if defined( BOOST_HAS_RVALUE_REFS)338 #if !defined(BOOST_NO_RVALUE_REFERENCES) 339 339 340 340 weak_count(weak_count && r): pi_(r.pi_) // nothrow 341 341 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) -
boost/smart_ptr/weak_ptr.hpp
74 74 { 75 75 } 76 76 77 #if defined( BOOST_HAS_RVALUE_REFS)77 #if !defined(BOOST_NO_RVALUE_REFERENCES) 78 78 79 79 template<class Y> 80 80 #if !defined( BOOST_SP_NO_SP_CONVERTIBLE ) … … 131 131 return *this; 132 132 } 133 133 134 #if defined( BOOST_HAS_RVALUE_REFS)134 #if !defined(BOOST_NO_RVALUE_REFERENCES) 135 135 136 136 template<class Y> 137 137 weak_ptr & operator=( weak_ptr<Y> && r ) -
boost/smart_ptr/intrusive_ptr.hpp
113 113 114 114 // Move support 115 115 116 #if defined( BOOST_HAS_RVALUE_REFS)116 #if !defined(BOOST_NO_RVALUE_REFERENCES) 117 117 118 118 intrusive_ptr(intrusive_ptr && rhs): px( rhs.px ) 119 119 { -
boost/smart_ptr/make_shared.hpp
86 86 } 87 87 }; 88 88 89 #if defined( BOOST_HAS_RVALUE_REFS)89 #if !defined(BOOST_NO_RVALUE_REFERENCES) 90 90 template< class T > T&& forward( T &&t ) 91 91 { 92 92 return t; … … 133 133 return boost::shared_ptr< T >( pt, pt2 ); 134 134 } 135 135 136 #if defined( BOOST_HAS_VARIADIC_TMPL ) && defined( BOOST_HAS_RVALUE_REFS)136 #if !defined(BOOST_NO_VARIADIC_TEMPLATES) && !defined(BOOST_NO_RVALUE_REFERENCES) 137 137 138 138 // Variadic templates, rvalue reference 139 139 -
libs/smart_ptr/test/intrusive_ptr_move_test.cpp
33 33 #include <algorithm> 34 34 #include <functional> 35 35 36 #if defined( BOOST_HAS_RVALUE_REFS)36 #if !defined(BOOST_NO_RVALUE_REFERENCES) 37 37 38 38 namespace N 39 39 { … … 174 174 return boost::report_errors(); 175 175 } 176 176 177 #else // !defined( BOOST_HAS_RVALUE_REFS)177 #else // defined(BOOST_NO_RVALUE_REFERENCES) 178 178 179 179 int main() 180 180 { -
libs/smart_ptr/test/shared_ptr_move_test.cpp
11 11 #include <boost/shared_ptr.hpp> 12 12 #include <boost/detail/lightweight_test.hpp> 13 13 14 #if defined( BOOST_HAS_RVALUE_REFS)14 #if !defined(BOOST_NO_RVALUE_REFERENCES) 15 15 16 16 struct X 17 17 { … … 96 96 return boost::report_errors(); 97 97 } 98 98 99 #else // !defined( BOOST_HAS_RVALUE_REFS)99 #else // defined(BOOST_NO_RVALUE_REFERENCES) 100 100 101 101 int main() 102 102 { -
libs/smart_ptr/test/make_shared_perfect_forwarding_test.cpp
12 12 #include <boost/make_shared.hpp> 13 13 #include <boost/shared_ptr.hpp> 14 14 15 #if ndef BOOST_HAS_RVALUE_REFS15 #ifdef BOOST_NO_RVALUE_REFERENCES 16 16 17 17 int main() 18 18 { 19 19 return 0; 20 20 } 21 21 22 #else // BOOST_ HAS_RVALUE_REFS22 #else // BOOST_NO_RVALUE_REFERENCES 23 23 24 24 class myarg 25 25 { … … 95 95 return boost::report_errors(); 96 96 } 97 97 98 #endif // BOOST_ HAS_RVALUE_REFS98 #endif // BOOST_NO_RVALUE_REFERENCES -
libs/smart_ptr/test/weak_ptr_move_test.cpp
11 11 #include <boost/weak_ptr.hpp> 12 12 #include <boost/detail/lightweight_test.hpp> 13 13 14 #if defined( BOOST_HAS_RVALUE_REFS)14 #if !defined(BOOST_NO_RVALUE_REFERENCES) 15 15 16 16 struct X 17 17 { … … 111 111 return boost::report_errors(); 112 112 } 113 113 114 #else // !defined( BOOST_HAS_RVALUE_REFS)114 #else // defined(BOOST_NO_RVALUE_REFERENCES) 115 115 116 116 int main() 117 117 {