]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/phoenix/example/callback.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / phoenix / example / callback.cpp
1 /*=============================================================================
2 Copyright (c) 2001-2007 Joel de Guzman
3
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #include <iostream>
8 #include <boost/phoenix/core.hpp>
9
10 template <typename F>
11 void print(F f)
12 {
13 std::cout << f() << std::endl;
14 }
15
16 int
17 main()
18 {
19 using boost::phoenix::val;
20
21 print(val(3));
22 print(val("Hello World"));
23 return 0;
24 }