Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62903 - sandbox/endian_ext/libs/integer/test
From: vicente.botet_at_[hidden]
Date: 2010-06-13 04:32:33


Author: viboes
Date: 2010-06-13 04:32:32 EDT (Sun, 13 Jun 2010)
New Revision: 62903
URL: http://svn.boost.org/trac/boost/changeset/62903

Log:
Add test for convert function
Text files modified:
   sandbox/endian_ext/libs/integer/test/endian_convert_test.cpp | 9 +++++----
   1 files changed, 5 insertions(+), 4 deletions(-)

Modified: sandbox/endian_ext/libs/integer/test/endian_convert_test.cpp
==============================================================================
--- sandbox/endian_ext/libs/integer/test/endian_convert_test.cpp (original)
+++ sandbox/endian_ext/libs/integer/test/endian_convert_test.cpp 2010-06-13 04:32:32 EDT (Sun, 13 Jun 2010)
@@ -32,9 +32,9 @@
 
 #include <boost/static_assert.hpp>
 
-//~ using namespace std; // Not the best programming practice, but I
+using namespace std; // Not the best programming practice, but I
 using namespace boost; // want to verify this combination of using
-//~ using namespace boost::integer; // namespaces works. See endian_operations_test
+using namespace boost::integer; // namespaces works. See endian_operations_test
 // // for tests that don't do "using namespace".
 
 namespace X {
@@ -169,13 +169,14 @@
     
     //~ integer::convert_from<network>(m.a);
     //~ integer::convert_from<network>(m.b);
- integer::convert_from<network>(m);
+ convert<from<network>, to<native_endian> >(m);
+ convert_from<network>(m);
     //~ std::cout << std::hex << m.a.a << std::endl;
     //~ std::cout << std::hex << m.a.b << std::endl;
     //~ std::cout << std::hex << m.b.a << std::endl;
     //~ std::cout << std::hex << m.b.b << std::endl;
 
- integer::convert_to<network>(m);
+ convert_to<network>(m);
     //~ std::cout << std::hex << m.a.a << std::endl;
     //~ std::cout << std::hex << m.a.b << std::endl;
     //~ std::cout << std::hex << m.b.a << std::endl;


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