Hi Alex,
    Thanks for your reply.
To Igor:
    The exception type is 'Access Violation' raised in boost::ends_with function.
 
Regards,
Ivan

2012/10/31 Alex Perry <Alex.Perry@smartlogic.com>
Sorry forgot to add you to cc - it speeds up conversation if you are in digest mode for boost list!

-----Original Message-----
From: Alex Perry
Sent: 31 October 2012 15:04
To: 'boost-users@lists.boost.org'
Subject: RE: [Boost-users] bug of boost algorithm library or boost asio?

On 31 October 2012 09:05 kpzhang [mailto:sail4dream@gmail.com] wrote :-

...snip...
>People said it's very unlikely to be compiler's bug, but when compiled in debug moded(or disable optimization), the problem does disappear.
>I have been stuck with this problem for quite a few hours. Any help is appreciated. Thanks in advance.
...snip...

Not sure if its any help but just tried compiling this with VS2010 and VS2012

>From VS command prompt (with boost version 1.51 pathed into include and lib)

cl test.cpp /EHsc /O2

and resulting test.exe is fine (with or without /O2)

So does look like a problem with vs2008 specifically (sorry don't have one available to try any longer)

Alex