VariadicTemplatesなvariantを作ろう→VariadicTemplatesの全要素を含むunionを作る方法が思い浮かばない…→Sprout.Variantはどうしてるのか見てみよう!→tuple_type tuple_; アッハイ
@kikairoya template< typename ...T > union { aligned_storage<sizeof(T),alignof(T)>::type... } // こういう型が作れなくて詰んでる
-
-
@fadis_ それ union じゃなくてよくね -
@kikairoya もしかして aligned_storage< 一番でかい型のサイズ, アラインメントの最小公倍数 >::type
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.