2016-12-31から1日間の記事一覧
※ブログ移動のため、再掲載 コンパイルが終わらないコード なんとなく原因は分かる…。 #include <iostream> template<int i, bool j = i % 3, bool k = i % 5> struct Hoge { }; template<int i> struct Hoge<i, true, true> { void operator()()const { std::cout << i << std::endl; } }; template<int i> struct Hoge<i, false, true> { void operator()()</i,></int></i,></int></int></iostream>…