2011-01-19から1日間の記事一覧

mpl::switch_

mpl で switch case が出来ないのか調べてみたらすでにあったみたいです。 リファレンスに載っていなかったので気付かなかった……。 #include <boost/static_assert.hpp> #include <boost/type_traits.hpp> #include <boost/mpl/assert.hpp> #include <boost/mpl/switch.hpp> #include <boost/mpl/vector.hpp> #include <boost/mpl/pair.hpp> #include </boost/mpl/pair.hpp></boost/mpl/vector.hpp></boost/mpl/switch.hpp></boost/mpl/assert.hpp></boost/type_traits.hpp></boost/static_assert.hpp>