assert takes an int as parameter, on 64bit platforms this will othen mean a 64->32 conversion.
This patch fixes a couple of problems in Boost.Format.
Index: boost/format/parsing.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/format/parsing.hpp,v retrieving revision 1.6 diff -u -p -r1.6 parsing.hpp --- boost/format/parsing.hpp 20 Nov 2002 14:51:17 -0000 1.6 +++ boost/format/parsing.hpp 22 Nov 2002 19:18:52 -0000 @@ -69,7 +69,7 @@ namespace detail { // Effects : advance *pos_p by skipping printf's asterisk fields. // Returns : nothing { - assert( pos_p); + assert( pos_p != 0); if(*pos_p >= buf.size() ) return; if(buf[ *pos_p]==os.widen('*')) { ++ (*pos_p); @@ -105,7 +105,7 @@ namespace detail { // - *fpar is set with the parameters read in the directive { typedef format_item<Ch, Tr> format_item_t; - assert( pos_p); + assert( pos_p != 0); typename std::basic_string<Ch, Tr>::size_type &i1 = *pos_p, i0; fpar->argN_ = format_item_t::argN_no_posit; // if no positional-directive
-- Lgb
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost