Issue with program_options with STLPort using long descriptions

Dear All, I have an issue when using program_options with long description strings when using STLport in debug mode. This occurs within format_paragraph in options_description.cpp and is being found by the _Incrementable check within the STLPort iterator checking. This is using vc71 STLPort 5.0 and Boost 1.33.1 Any help on this issue would be gratefully received. Apologies for asking a question that has been asked previously but there was no resolution posted to the group.

Tim wrote:
Dear All,
I have an issue when using program_options with long description strings when using STLport in debug mode.
This occurs within format_paragraph in options_description.cpp and is being found by the _Incrementable check within the STLPort iterator checking.
This is using vc71 STLPort 5.0 and Boost 1.33.1
Any help on this issue would be gratefully received.
Apologies for asking a question that has been asked previously but there was no resolution posted to the group.
Hi Tim, thank you for your bug report. Unfortunately, you did not provide the test program that can be used to reproduce the problem, and did not provide the error message from STLPort, so all I can do is some guessing. There was a similar problem with VC8, where a string iterator was icremented past the end of a string, and VC8 complained, even though the iterator was never dereferenced. That error was fixed, so my suggestion is the try the CVS version. Thanks, Volodya

Thanks for your response. I have checked out the latest head from CVS and it
does indeed function correctly and the problem is no longer present.
Apologies for not checking the latest version before posting but I wanted to
fix development on a full milestone release of Boost but I will ensure I
take this latest revision.
Thanks again,
Tim
"Vladimir Prus"
Tim wrote:
Dear All,
I have an issue when using program_options with long description strings when using STLport in debug mode.
This occurs within format_paragraph in options_description.cpp and is being found by the _Incrementable check within the STLPort iterator checking.
This is using vc71 STLPort 5.0 and Boost 1.33.1
Any help on this issue would be gratefully received.
Apologies for asking a question that has been asked previously but there was no resolution posted to the group.
Hi Tim,
thank you for your bug report. Unfortunately, you did not provide the test program that can be used to reproduce the problem, and did not provide the error message from STLPort, so all I can do is some guessing.
There was a similar problem with VC8, where a string iterator was icremented past the end of a string, and VC8 complained, even though the iterator was never dereferenced. That error was fixed, so my suggestion is the try the CVS version.
Thanks, Volodya
participants (2)
-
Tim
-
Vladimir Prus