Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2006-09-24 05:12:26


tikcireviva wrote:
> Hi Guys,
>
> I am using VC6, boost-1.33.1, and I've compiled the regex lib mt-s and
> ms-sgd
> It works when I have used mt-s in the release, however, when it comes
> to
> the debug mode.
> Any regex call will prompt me a vc++ "debug error"
>
> From my program console, it shows
> Assertion failed: r == 1 << 8, file E:\boost_1_33_1_beta\boost_1_33_1
> \libs\regex\build\../src/w32_regex_traits.cpp, line 108
> and then the program terminated with "abnormal program termination"
> error message
>
> I've tested this by taken out all regex related variables, function
> calls. Then the debug version of my program works!
>
> Anybody know what this really mean? I wonder if this is because of the
> issue during lib compilation. HCan anyone please give me a helping
> hand?
> I am really appreciate yours help.

This is a known issue in 1.33.1 when running on a Chinese (and possibly
other MBCS) locale. I believe it's fixed in cvs.

See
https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1358740&group_id=7586

and the patch is:
http://boost.cvs.sourceforge.net/boost/boost/libs/regex/src/w32_regex_traits.cpp?r1=1.44&r2=1.44.2.1

HTH, John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk