2011-08-07から1日間の記事一覧

Boost.Phoenix の Scope-let

Boost.Phoenix では、let を使用して、ローカル変数のような構文を書くことが出来ます。 [ソース] #include <boost/phoenix/scope.hpp> #include <boost/phoenix/core.hpp> #include <boost/phoenix/operator.hpp> #include <boost/phoenix/statement.hpp> #include <iostream> int main(){ namespace phx = boost::phoenix; using phx::arg_names::arg1; using…</iostream></boost/phoenix/statement.hpp></boost/phoenix/operator.hpp></boost/phoenix/core.hpp></boost/phoenix/scope.hpp>