Boost logo

Boost Users :

From: Loïc Joly (loic.joly_at_[hidden])
Date: 2006-08-10 07:04:54


Ovanes Markarian a écrit :
> In my former post I wrote about assertions in program_options library...
>
> Since nobody answered I had to debug some boost::code. As I found out, current assertion of po
> relies in the following:
>
> in the function format_paragraph (option_description.cpp:365) is written:
>
> //...
> if (line_begin + (line_length - indent) > par_end)
> //...
>
> line_begin is of type std::string::const_iterator;
>
> line_length - indent is 51
>
> in the last line only one word is written, which is shorter then 51 characters. By adding 51 to an
> iterator an assertion check is made, that the addition will produce an iterator out of string
> bounds.

I think I remember reading something about this problem in
program_option. Have you checked latest CVS or in the dev mailing list ?

-- 
Loïc

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net