values.cpp 569 B

123456789101112131415161718
  1. /*=============================================================================
  2. Copyright (c) 2001-2007 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #include <iostream>
  7. #include <boost/phoenix/core.hpp>
  8. int
  9. main()
  10. {
  11. using boost::phoenix::val;
  12. std::cout << val(3)() << std::endl;
  13. std::cout << val("Hello World")() << std::endl;
  14. return 0;
  15. }