Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64185 - sandbox/opaque/libs/opaque/test
From: vicente.botet_at_[hidden]
Date: 2010-07-19 18:16:33


Author: viboes
Date: 2010-07-19 18:16:32 EDT (Mon, 19 Jul 2010)
New Revision: 64185
URL: http://svn.boost.org/trac/boost/changeset/64185

Log:
conversion between public typedefs is transitive now.
Text files modified:
   sandbox/opaque/libs/opaque/test/Jamfile.v2 | 24 ++++++++++++------------
   sandbox/opaque/libs/opaque/test/test.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/two_level_conversion_fails.cpp | 8 ++++++++
   3 files changed, 21 insertions(+), 13 deletions(-)

Modified: sandbox/opaque/libs/opaque/test/Jamfile.v2
==============================================================================
--- sandbox/opaque/libs/opaque/test/Jamfile.v2 (original)
+++ sandbox/opaque/libs/opaque/test/Jamfile.v2 2010-07-19 18:16:32 EDT (Mon, 19 Jul 2010)
@@ -28,18 +28,18 @@
     ;
 
    test-suite "compile_fail"
- :
- [ compile-fail two_level_conversion_fails.cpp ]
- [ compile-fail add_siblings_fail.cpp ]
- [ compile-fail assign_siblings_fail.cpp ]
- [ compile-fail add_pub_siblings_fail.cpp ]
- [ compile-fail assign_pub_siblings_fail.cpp ]
- ;
+ :
+ [ run two_level_conversion_fails.cpp ]
+ [ compile-fail add_siblings_fail.cpp ]
+ [ compile-fail assign_siblings_fail.cpp ]
+ [ compile-fail add_pub_siblings_fail.cpp ]
+ [ compile-fail assign_pub_siblings_fail.cpp ]
+ ;
 
    test-suite "opaque"
- :
- [ run test.cpp ]
- [ run public_opaque_test.cpp ]
- [ run private_opaque_test.cpp ]
- ;
+ :
+ [ run test.cpp ]
+ [ run public_opaque_test.cpp ]
+ [ run private_opaque_test.cpp ]
+ ;
 

Modified: sandbox/opaque/libs/opaque/test/test.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/test.cpp (original)
+++ sandbox/opaque/libs/opaque/test/test.cpp 2010-07-19 18:16:32 EDT (Mon, 19 Jul 2010)
@@ -45,7 +45,7 @@
 serial_number next_id( serial_number n ) {
  //return static_cast<serial_number>(n + 1u);
  // return opaque_static_cast<serial_number>(n + 1u);
- return serial_number(n + 1u);
+ return n + serial_number(1u);
 }
 
 void accumulate_test() {

Modified: sandbox/opaque/libs/opaque/test/two_level_conversion_fails.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/two_level_conversion_fails.cpp (original)
+++ sandbox/opaque/libs/opaque/test/two_level_conversion_fails.cpp 2010-07-19 18:16:32 EDT (Mon, 19 Jul 2010)
@@ -67,3 +67,11 @@
 }
 
 
+test_suite* init_unit_test_suite(int, char*[])
+{
+ test_suite* test = BOOST_TEST_SUITE("public_multiple_levels");
+ test->add(BOOST_TEST_CASE(&public_multiple_levels_fail));
+
+ return test;
+}
+


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