BOOST_CHECK_THROW(lexical_cast<int>(1.23), boost::bad_lexical_cast);
BOOST_CHECK_THROW(lexical_cast<int>(1.23), bad_lexical_cast);
void test_conversion_to_int(){    BOOST_CHECK_EQUAL(1,lexical_cast<int>('1'));    BOOST_CHECK_EQUAL(0,lexical_cast<int>('0'));    BOOST_CHECK_THROW(lexical_cast<int>('A'),boost::bad_lexical_cast);    BOOST_CHECK_EQUAL(1,lexical_cast<int>(1));    BOOST_CHECK_EQUAL(        (std::numeric_limits<int>::max)(),        lexical_cast<int>((std::numeric_limits<int>::max)()));    BOOST_CHECK_EQUAL(1,lexical_cast<int>(1.0));    BOOST_CHECK_THROW(lexical_cast<int>(1.23), boost::bad_lexical_cast);    BOOST_CHECK_THROW(lexical_cast<int>(1e20), boost::bad_lexical_cast);    BOOST_CHECK_EQUAL(1, lexical_cast<int>(true));    BOOST_CHECK_EQUAL(0, lexical_cast<int>(false));    BOOST_CHECK_EQUAL(123, lexical_cast<int>("123"));    BOOST_CHECK_THROW(        lexical_cast<int>(" 123"), boost::bad_lexical_cast);    BOOST_CHECK_THROW(lexical_cast<int>(""), boost::bad_lexical_cast);    BOOST_CHECK_THROW(lexical_cast<int>("Test"), boost::bad_lexical_cast);    BOOST_CHECK_EQUAL(123, lexical_cast<int>("123"));    BOOST_CHECK_EQUAL(123,lexical_cast<int>(std::string("123")));    BOOST_CHECK_THROW(        lexical_cast<int>(std::string(" 123")), boost::bad_lexical_cast);    BOOST_CHECK_THROW(        lexical_cast<int>(std::string("")), boost::bad_lexical_cast);    BOOST_CHECK_THROW(        lexical_cast<int>(std::string("Test")), boost::bad_lexical_cast);}