Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81232 - trunk/libs/smart_ptr/test
From: pdimov_at_[hidden]
Date: 2012-11-07 10:07:09


Author: pdimov
Date: 2012-11-07 10:07:08 EST (Wed, 07 Nov 2012)
New Revision: 81232
URL: http://svn.boost.org/trac/boost/changeset/81232

Log:
Rename sp_convertible_test.cpp to shared_ptr_convertible_test.cpp.
Added:
   trunk/libs/smart_ptr/test/shared_ptr_convertible_test.cpp
      - copied unchanged from r81228, /trunk/libs/smart_ptr/test/sp_convertible_test.cpp
Removed:
   trunk/libs/smart_ptr/test/sp_convertible_test.cpp
Text files modified:
   trunk/libs/smart_ptr/test/Jamfile.v2 | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/smart_ptr/test/Jamfile.v2
==============================================================================
--- trunk/libs/smart_ptr/test/Jamfile.v2 (original)
+++ trunk/libs/smart_ptr/test/Jamfile.v2 2012-11-07 10:07:08 EST (Wed, 07 Nov 2012)
@@ -46,7 +46,7 @@
           [ run spinlock_pool_test.cpp ]
           [ run make_shared_test.cpp ]
           [ run make_shared_perfect_forwarding_test.cpp ]
- [ run sp_convertible_test.cpp ]
+ [ run shared_ptr_convertible_test.cpp ]
           [ run wp_convertible_test.cpp ]
           [ run ip_convertible_test.cpp ]
           [ run allocate_shared_test.cpp ]

Deleted: trunk/libs/smart_ptr/test/sp_convertible_test.cpp
==============================================================================
--- trunk/libs/smart_ptr/test/sp_convertible_test.cpp 2012-11-07 10:07:08 EST (Wed, 07 Nov 2012)
+++ (empty file)
@@ -1,71 +0,0 @@
-#include <boost/config.hpp>
-
-// sp_convertible_test.cpp
-//
-// Copyright (c) 2008 Peter Dimov
-//
-// Distributed under the Boost Software License, Version 1.0.
-// See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt
-
-#include <boost/detail/lightweight_test.hpp>
-#include <boost/shared_ptr.hpp>
-
-//
-
-class incomplete;
-
-struct X
-{
-};
-
-struct Y
-{
-};
-
-struct Z: public X
-{
-};
-
-int f( boost::shared_ptr<void const> )
-{
- return 1;
-}
-
-int f( boost::shared_ptr<int> )
-{
- return 2;
-}
-
-int f( boost::shared_ptr<incomplete> )
-{
- return 3;
-}
-
-int g( boost::shared_ptr<X> )
-{
- return 4;
-}
-
-int g( boost::shared_ptr<Y> )
-{
- return 5;
-}
-
-int g( boost::shared_ptr<incomplete> )
-{
- return 6;
-}
-
-int main()
-{
- boost::shared_ptr<double> p1;
- BOOST_TEST( 1 == f( p1 ) );
- BOOST_TEST( 1 == f( boost::shared_ptr<double>() ) );
-
- boost::shared_ptr<Z> p2;
- BOOST_TEST( 4 == g( p2 ) );
- BOOST_TEST( 4 == g( boost::shared_ptr<Z>() ) );
-
- return boost::report_errors();
-}


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk