2011-12-10から1日間の記事一覧

Boost.Phoenix と decltype を組み合わせる

以前も似たような事をやったんですが、Boost.Phoenix と decltype の組み合わせで面白いことができますね。 [ソース] #include <memory> #include <iostream> #include <boost/mpl/int.hpp> #include <boost/mpl/string.hpp> #include <boost/phoenix.hpp> #include <boost/multi_index/mem_fun.hpp> struct disp_impl{ typedef void result_type; template</boost/multi_index/mem_fun.hpp></boost/phoenix.hpp></boost/mpl/string.hpp></boost/mpl/int.hpp></iostream></memory>