2014-03-15から1日間の記事一覧

C++14 で名前付きタプル

C++

C++14 で名前付きタプルのようなものを書いてみた。 [ソース] #include <boost/preprocessor/seq.hpp> #include <boost/preprocessor/tuple.hpp> #include <boost/preprocessor/cat.hpp> #define PACK_FILLER_0(X, Y) \ ((X, Y)) PACK_FILLER_1 #define PACK_FILLER_1(X, Y) \ ((X, Y)) PACK_FILLER_0 #define PACK_FILLER_0_END #define PACK_FILLE…</boost/preprocessor/cat.hpp></boost/preprocessor/tuple.hpp></boost/preprocessor/seq.hpp>