implicit_cast_fail2.cpp 371 B

12345678910111213141516171819
  1. //
  2. // Test that implicit_cast requires a template argument
  3. //
  4. // Copyright 2014 Peter Dimov
  5. //
  6. // Distributed under the Boost Software License, Version 1.0.
  7. //
  8. // See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
  9. //
  10. #include <boost/implicit_cast.hpp>
  11. int main()
  12. {
  13. int x = boost::implicit_cast( 1 );
  14. (void)x;
  15. return 0;
  16. }