2
0
mirror of https://github.com/boostorg/convert.git synced 2026-01-30 19:52:17 +00:00

removed struct convert

This commit is contained in:
Vladimir Batov
2014-05-20 23:15:17 +10:00
parent cdfc5bee51
commit 68ac0aa578
10 changed files with 134 additions and 141 deletions

View File

@@ -38,7 +38,7 @@ test::algorithms()
strings.begin(),
strings.end(),
std::back_inserter(integers),
boost::cnv<int>(ccnv(std::hex)));
boost::convert<int>(ccnv(std::hex)));
BOOST_TEST(!"Failed to throw");
}
@@ -62,7 +62,7 @@ test::algorithms()
strings.begin(),
strings.end(),
std::back_inserter(integers),
boost::cnv<int>(ccnv(arg::base = cnv::base::hex)).value_or(-1));
boost::convert<int>(ccnv(arg::base = cnv::base::hex)).value_or(-1));
BOOST_TEST(integers.size() == 5);
BOOST_TEST(integers[0] == 15);
@@ -79,7 +79,7 @@ test::algorithms()
strings.begin(),
strings.end(),
std::back_inserter(opt_ints),
boost::cnv<int>(ccnv(arg::base = cnv::base::hex)));
boost::convert<int>(ccnv(arg::base = cnv::base::hex)));
BOOST_TEST(opt_ints.size() == 5);
BOOST_TEST( opt_ints[0]);
@@ -102,7 +102,7 @@ test::algorithms()
integers.begin(),
integers.end(),
std::back_inserter(new_strings),
boost::cnv<std::string>(ccnv(std::dec)));
boost::convert<std::string>(ccnv(std::dec)));
BOOST_TEST(new_strings.size() == 5);
BOOST_TEST(new_strings[0] == "15");