Re: [boost] [system] system-0.2 request for comments

Hi,
~/devTools/boost_cvs/libs/system/build$ bjam ...found 225 targets... ...updating 14 targets... gcc-C++-action ../../../bin/boost/libs/system/build/libboost_system.a/gcc/deb ug/error_code.o ../src/error_code.cpp: In function 'std::string<unnamed>::errno_md(const boost::system::error_code&)': ../src/error_code.cpp:190: error: invalid conversion from 'char*' to 'int'
///that's the while condition here...
char buf[64]; char * bp = buf; std::size_t sz = sizeof(buf); int result; while ( (result = strerror_r( ec.value(), bp, sz )) == ERANGE ) { if ( sz > sizeof(buf) ) std::free( bp ); sz *= 2;
/* Reentrant version of `strerror'. There are 2 flavors of `strerror_r', GNU which returns the string and may or may not use the supplied temporary buffer and POSIX one which fills the string into the buffer. To use the POSIX version, -D_XOPEN_SOURCE=600 or -D_POSIX_C_SOURCE=200112L without -D_GNU_SOURCE is needed, otherwise the GNU version is preferred. */ Oliver

<Oliver.Kowalke@qimonda.com> wrote in message news:5D4F031442F5CB489CF88277DDBACCDD056F32DC@drsse401.eu.infineon.com...
Hi,
~/devTools/boost_cvs/libs/system/build$ bjam ...found 225 targets... ...updating 14 targets... gcc-C++-action ../../../bin/boost/libs/system/build/libboost_system.a/gcc/deb ug/error_code.o ../src/error_code.cpp: In function 'std::string<unnamed>::errno_md(const boost::system::error_code&)': ../src/error_code.cpp:190: error: invalid conversion from 'char*' to 'int'
///that's the while condition here...
char buf[64]; char * bp = buf; std::size_t sz = sizeof(buf); int result; while ( (result = strerror_r( ec.value(), bp, sz )) == ERANGE ) { if ( sz > sizeof(buf) ) std::free( bp ); sz *= 2;
/* Reentrant version of `strerror'. There are 2 flavors of `strerror_r', GNU which returns the string and may or may not use the supplied temporary buffer and POSIX one which fills the string into the buffer. To use the POSIX version, -D_XOPEN_SOURCE=600 or -D_POSIX_C_SOURCE=200112L without -D_GNU_SOURCE is needed, otherwise the GNU version is preferred. */
Grrrr... This stuff is going to drive me crazy! Could I talk you into submitting a patch? You clearly know more about differences between these OS's than I do. Thanks, --Beman
participants (2)
-
Beman Dawes
-
Oliver.Kowalke@qimonda.com