mirror of
https://github.com/boostorg/conversion.git
synced 2026-01-26 08:52:27 +01:00
24 lines
587 B
C++
24 lines
587 B
C++
// Copyright David Abrahams 2003. Permission to copy, use,
|
|
// modify, sell and distribute this software is granted provided this
|
|
// copyright notice appears in all copies. This software is provided
|
|
// "as is" without express or implied warranty, and with no claim as
|
|
// to its suitability for any purpose.
|
|
|
|
#include <boost/implicit_cast.hpp>
|
|
#include <boost/type.hpp>
|
|
|
|
#define BOOST_INCLUDE_MAIN
|
|
#include <boost/test/test_tools.hpp>
|
|
|
|
using boost::implicit_cast;
|
|
|
|
struct foo
|
|
{
|
|
explicit foo(char const*) {}
|
|
};
|
|
|
|
int test_main(int, char*[])
|
|
{
|
|
foo x = implicit_cast<foo>("foobar");
|
|
}
|