Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65569 - sandbox/conversion/libs/conversion/test
From: vicente.botet_at_[hidden]
Date: 2010-09-24 03:24:01


Author: viboes
Date: 2010-09-24 03:24:00 EDT (Fri, 24 Sep 2010)
New Revision: 65569
URL: http://svn.boost.org/trac/boost/changeset/65569

Log:
Conversion 0.5: warning removal
Text files modified:
   sandbox/conversion/libs/conversion/test/Jamfile.v2 | 1 +
   sandbox/conversion/libs/conversion/test/rational.cpp | 4 ++--
   2 files changed, 3 insertions(+), 2 deletions(-)

Modified: sandbox/conversion/libs/conversion/test/Jamfile.v2
==============================================================================
--- sandbox/conversion/libs/conversion/test/Jamfile.v2 (original)
+++ sandbox/conversion/libs/conversion/test/Jamfile.v2 2010-09-24 03:24:00 EDT (Fri, 24 Sep 2010)
@@ -30,6 +30,7 @@
         <toolset>gcc-mingw-4.5.0:<cxxflags>-Wno-missing-field-initializers
         <toolset>gcc-mingw-4.5.0:<cxxflags>-fdiagnostics-show-option
         <toolset>msvc:<cxxflags>/wd4127
+ <toolset>msvc:<cxxflags>/wd4244
 
 ;
 

Modified: sandbox/conversion/libs/conversion/test/rational.cpp
==============================================================================
--- sandbox/conversion/libs/conversion/test/rational.cpp (original)
+++ sandbox/conversion/libs/conversion/test/rational.cpp 2010-09-24 03:24:00 EDT (Fri, 24 Sep 2010)
@@ -20,7 +20,7 @@
 typedef short B1;
 
 void explicit_convert_to() {
- B1 b1;
+ B1 b1(3);
     B1 b2(2);
     boost::rational<B1> b(1,2);
     boost::rational<A1> a1(boost::convert_to<boost::rational<A1> >(b));
@@ -28,7 +28,7 @@
 
 }
 void explicit_assign_to() {
- B1 b1;
+ B1 b1(3);
     B1 b2(2);
     boost::rational<A1> a;
     boost::rational<B1> b(1,2);


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