/*============================================================================= Phoenix V1.2.1 Copyright (c) 2001-2003 Joel de Guzman Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #include #include #include #include #include using namespace std; using namespace phoenix; ////////////////////////////////// template struct static_int { template struct result { typedef int type; }; template int eval(TupleT const&) const { return N; } }; ////////////////////////////////// template phoenix::actor > int_const() { return static_int(); } ////////////////////////////////// int main() { cout << (int_const<5>() + int_const<6>())() << endl; return 0; }