C++TMP初心者なのであんまりわかってないんですが 1. template<...>部分+デフォルトテンプレート引数でenable_if 2. 戻り値型でenable_if 3. 引数リスト末尾+デフォルト引数でenable_if ってどれでSFINAEさせても同じこと?1が汎用的ってかんじ?
-
-
あーvariadic templateを考えると1も万能ではないですね... ありがとうございます。やっぱりconceptでいいやという気分w
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
variadic templateでも1は使えるのではhttps://wandbox.org/permlink/9UlKa2DuD5exVcnC …
-
せやな、条件が足りなかった。「関数の引数から型を決定できないVariadic Templatesをテンプレート引数に持っている場合」だわ
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.