2014-01-31 Daniela Engert
Am 30.01.2014 06:24 schrieb Antony Polukhin:
Some of the tests for Boost.LexicalCast fail on any MSVC compiler. Unfortunately currently I have no access to Windows.
I can run as many tests with vc10, vc11 and vc12 for you as you like.
This is one of the failing cases:
----------------------------------------------- #include
#include meerkat::CatchUnhandledExceptions CrashHandler;
int main() { char A = boost::lexical_cast<char>("A"); } -----------------------------------------------
which causes
*** Fri Jan 31 17:59:12 2014 *** Unhandled Structured Exception C0000005 @ 0x000B1151 (continuable) Access denied while writing @ 0x00000000 iosfwd (523): std::char_traits<char>::length + 0x3 lexical_cast.hpp (1378):
boost::detail::lexical_istream_limited_src
::shl_char_array + 0x9 lexical_cast.hpp (1600): boost::detail::lexical_istream_limited_src
::operator<< + 0x2f lexical_cast.hpp (2083): boost::detail::lexical_converter_impl ::try_convert + 0xe lexical_cast.hpp (2301): boost::conversion::detail::try_lexical_convert + 0x1b lexical_cast.hpp (2328): boost::lexical_cast + 0xd main.cpp (8): main + 0xa crtexe.c (536): __tmainCRTStartup + 0x19 crtexe.c (377): mainCRTStartup 7704336A (kernel32): BaseThreadInitThunk + 0x12 77929F72 (ntdll): RtlInitializeExceptionChain + 0x63 77929F45 (ntdll): RtlInitializeExceptionChain + 0x36 *** boost::detail::lexical_converter_impl
::try_convert's signature in line 2076 is bool(const char * const &, char &). 'arg' is 0x00000041.
That's a good place for me to start! Thanks for finding that out! -- Best regards, Antony Polukhin