BOOST_CHECK_THROW(lexical_cast<double>(L""), boost::bad_lexical_cast); BOOST_CHECK_THROW(lexical_cast<double>(L"Test"), boost::bad_lexical_cast);
BOOST_CHECK_THROW(lexical_cast<double>(L""), bad_lexical_cast); BOOST_CHECK_THROW(lexical_cast<double>(L"Test"), bad_lexical_cast);
void test_conversion_from_wchar_t(){    #ifndef DISABLE_WIDE_CHAR_SUPPORT    BOOST_CHECK_EQUAL(1, lexical_cast<int>(L'1'));    BOOST_CHECK_THROW(lexical_cast<int>(L'A'), boost::bad_lexical_cast);    BOOST_CHECK_EQUAL(123, lexical_cast<int>(L"123"));    BOOST_CHECK_THROW(lexical_cast<int>(L""), boost::bad_lexical_cast);    BOOST_CHECK_THROW(lexical_cast<int>(L"Test"), boost::bad_lexical_cast);    BOOST_CHECK_EQUAL(1.0, lexical_cast<double>(L'1'));    BOOST_CHECK_THROW(lexical_cast<double>(L'A'), boost::bad_lexical_cast);    BOOST_CHECK_EQUAL(1.23, lexical_cast<double>(L"1.23"));    BOOST_CHECK_THROW(lexical_cast<double>(L""), boost::bad_lexical_cast);    BOOST_CHECK_THROW(lexical_cast<double>(L"Test"), boost::bad_lexical_cast);    BOOST_CHECK_EQUAL(true, lexical_cast<bool>(L'1'));    BOOST_CHECK_EQUAL(false, lexical_cast<bool>(L'0'));    BOOST_CHECK_THROW(lexical_cast<bool>(L'A'), boost::bad_lexical_cast);    BOOST_CHECK_EQUAL(true, lexical_cast<bool>(L"1"));    BOOST_CHECK_EQUAL(false, lexical_cast<bool>(L"0"));    BOOST_CHECK_THROW(lexical_cast<bool>(L""), boost::bad_lexical_cast);    BOOST_CHECK_THROW(lexical_cast<bool>(L"Test"), boost::bad_lexical_cast);    #endif}