2
0
mirror of https://github.com/boostorg/convert.git synced 2026-01-31 08:02:18 +00:00
Files
convert/example/default_converter_fail.cpp
2014-06-22 13:51:00 +10:00

18 lines
428 B
C++

// Boost.Convert test and usage example
// Copyright (c) 2009-2014 Vladimir Batov.
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. See http://www.boost.org/LICENSE_1_0.txt.
#include <boost/convert.hpp>
using std::string;
using boost::convert;
int
main(int argc, char const* argv[])
{
int i = convert<int>("123").value();
string s = convert<string>(123).value();
}