// 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 #include #define BOOST_INCLUDE_MAIN #include using boost::implicit_cast; struct foo { explicit foo(char const*) {} }; int test_main(int, char*[]) { foo x = implicit_cast("foobar"); }