Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65699 - in sandbox/opaque/libs/opaque/test: . new_class new_type private_opaque_class private_opaque_type public_opaque_class public_opaque_type
From: vicente.botet_at_[hidden]
Date: 2010-09-30 16:32:49


Author: viboes
Date: 2010-09-30 16:32:48 EDT (Thu, 30 Sep 2010)
New Revision: 65699
URL: http://svn.boost.org/trac/boost/changeset/65699

Log:
Opaque:
* warning removal
 

Added:
   sandbox/opaque/libs/opaque/test/new_class/
   sandbox/opaque/libs/opaque/test/new_type/
   sandbox/opaque/libs/opaque/test/private_opaque_class/
   sandbox/opaque/libs/opaque/test/private_opaque_type/
   sandbox/opaque/libs/opaque/test/public_opaque_class/
   sandbox/opaque/libs/opaque/test/public_opaque_type/
Text files modified:
   sandbox/opaque/libs/opaque/test/private_opaque_test.cpp | 9 +++------
   sandbox/opaque/libs/opaque/test/public_opaque_test.cpp | 7 +++----
   sandbox/opaque/libs/opaque/test/test.cpp | 1 -
   3 files changed, 6 insertions(+), 11 deletions(-)

Modified: sandbox/opaque/libs/opaque/test/private_opaque_test.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/private_opaque_test.cpp (original)
+++ sandbox/opaque/libs/opaque/test/private_opaque_test.cpp 2010-09-30 16:32:48 EDT (Thu, 30 Sep 2010)
@@ -26,8 +26,8 @@
 }
 
 void assign_test() {
- private_unsigned a, a2;
- private_unsigned2 b;
+ private_unsigned a, a2(2);
+ //~ private_unsigned2 b;
 
     //~ a=b; // error
     a=a2; // OK
@@ -38,7 +38,7 @@
     i=unsigned(a);
     //error: `OT' used where a `UT' was expected
 #else
- i=a.underlying();
+ i=a.underlying();
 #endif
 }
 
@@ -142,7 +142,6 @@
 {
   test_suite* test = BOOST_TEST_SUITE("private");
 
-
   test->add(BOOST_TEST_CASE(&size_test));
   test->add(BOOST_TEST_CASE(&assign_test));
   test->add(BOOST_TEST_CASE(&eq_test));
@@ -162,5 +161,3 @@
 
   return test;
 }
-
-

Modified: sandbox/opaque/libs/opaque/test/public_opaque_test.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/public_opaque_test.cpp (original)
+++ sandbox/opaque/libs/opaque/test/public_opaque_test.cpp 2010-09-30 16:32:48 EDT (Thu, 30 Sep 2010)
@@ -23,8 +23,8 @@
 }
 
 void assign_test() {
- public_unsigned a, a2;
- public_unsigned2 b;
+ public_unsigned a(0), a2(1);
+ public_unsigned2 b(0);
 
     //~ a=b; // error
     a=a2; // OK
@@ -91,7 +91,7 @@
     BOOST_CHECK((a+b==d)==false);
     BOOST_CHECK((d==a+b)==false);
 
- public_unsigned2 x;
+ //~ public_unsigned2 x;
     //~ a=a+x; // error
 
     unsigned u=3,v=0;
@@ -182,4 +182,3 @@
 
   return test;
 }
-

Modified: sandbox/opaque/libs/opaque/test/test.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/test.cpp (original)
+++ sandbox/opaque/libs/opaque/test/test.cpp 2010-09-30 16:32:48 EDT (Thu, 30 Sep 2010)
@@ -86,7 +86,6 @@
 BOOST_OPAQUE_PUBLIC_TYPEDEF(energy,potential_energy);
 BOOST_OPAQUE_PUBLIC_TYPEDEF(energy,heat_energy);
 
-double sqrt(double d) { return d;}
 void public_multiple_levels_test() {
     energy e;
     potential_energy p, q;


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