hello_world.cpp 398 B

12345678910111213141516171819
  1. // Copyright (C) 2016-2018 T. Zachary Laine
  2. //
  3. // Distributed under the Boost Software License, Version 1.0. (See
  4. // accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. //[hello_world
  7. #include <boost/yap/expression.hpp>
  8. #include <iostream>
  9. int main ()
  10. {
  11. evaluate(boost::yap::make_terminal(std::cout) << "Hello" << ',' << " world!\n");
  12. return 0;
  13. }
  14. //]