forked from boostorg/conversion
@@ -609,7 +609,6 @@ To try_cast_by_ptr(const From& from, const Func& f) {
|
|||||||
void test_getting_pointer_to_function()
|
void test_getting_pointer_to_function()
|
||||||
{
|
{
|
||||||
// Just checking that &lexical_cast<To, From> is not ambiguous
|
// Just checking that &lexical_cast<To, From> is not ambiguous
|
||||||
(void)&lexical_cast<int, const char*>;
|
|
||||||
BOOST_CHECK_EQUAL(100, try_cast_by_ptr<int>("100", &boost::lexical_cast<int, const char[4]>));
|
BOOST_CHECK_EQUAL(100, try_cast_by_ptr<int>("100", &boost::lexical_cast<int, const char[4]>));
|
||||||
BOOST_CHECK_EQUAL(100, try_cast_by_ptr<int>("100", &boost::lexical_cast<int, std::string>));
|
BOOST_CHECK_EQUAL(100, try_cast_by_ptr<int>("100", &boost::lexical_cast<int, std::string>));
|
||||||
BOOST_CHECK_EQUAL(std::string("100"), try_cast_by_ptr<std::string>(100, &boost::lexical_cast<std::string, int>));
|
BOOST_CHECK_EQUAL(std::string("100"), try_cast_by_ptr<std::string>(100, &boost::lexical_cast<std::string, int>));
|
||||||
|
Reference in New Issue
Block a user