Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57805 - in trunk/libs/program_options: src test
From: s.ochsenknecht_at_[hidden]
Date: 2009-11-20 04:50:43


Author: s_ochsenknecht
Date: 2009-11-20 04:50:43 EST (Fri, 20 Nov 2009)
New Revision: 57805
URL: http://svn.boost.org/trac/boost/changeset/57805

Log:
remove compile warnings
Text files modified:
   trunk/libs/program_options/src/convert.cpp | 2 +-
   trunk/libs/program_options/test/test_convert.cpp | 3 +--
   2 files changed, 2 insertions(+), 3 deletions(-)

Modified: trunk/libs/program_options/src/convert.cpp
==============================================================================
--- trunk/libs/program_options/src/convert.cpp (original)
+++ trunk/libs/program_options/src/convert.cpp 2009-11-20 04:50:43 EST (Fri, 20 Nov 2009)
@@ -43,7 +43,7 @@
     {
         std::basic_string<ToChar> result;
         
- std::mbstate_t state = {0};
+ std::mbstate_t state = std::mbstate_t();
 
         const FromChar* from = s.data();
         const FromChar* from_end = s.data() + s.size();

Modified: trunk/libs/program_options/test/test_convert.cpp
==============================================================================
--- trunk/libs/program_options/test/test_convert.cpp (original)
+++ trunk/libs/program_options/test/test_convert.cpp 2009-11-20 04:50:43 EST (Fri, 20 Nov 2009)
@@ -39,8 +39,7 @@
     std::wstring result;
 
 
- std::mbstate_t state;
- memset(&state, 0, sizeof(std::mbstate_t));
+ std::mbstate_t state = std::mbstate_t();
     
     const char* from = s.data();
     const char* from_end = s.data() + s.size();


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