2015-03-05から1日間の記事一覧
上げるの忘れてた。 generic lambda を使っていい感じに static_if を書いてみました。 ソース #include <iostream> template<typename Then, typename Else> auto static_if(std::integral_constant<bool, true>, Then then, Else else_){ return then; } template<typename Then, typename Else> auto static_if(std::integral_constant<bool, false>, T…</bool,></typename></bool,></typename></iostream>