meryngii.neta

今日も新たな"ネタ"を求めて。

2008-09-23から1日間の記事一覧

複雑な宣言

C++

ほとんどC言語ネタなわけだが、C++0xの9月分のドラフトまでもう少しだと思うので、それまでつなぎを書いておく。 #include <boost/type_traits/is_same.hpp> #include <boost/static_assert.hpp> typedef int* DtoI(double); typedef DtoI* V10[10]; typedef V10* f(char); typedef int* (*(*g(char))[10])(double); B</boost/static_assert.hpp></boost/type_traits/is_same.hpp>…