decayはoverload resolutionではなくてtemplate argument deductionなのでcv-qualifyは消えますね
2011-09-02 17:15:46うん?違うな、remove_extent::type *か、んじゃremove_extentでconst消えるの?
2011-09-02 17:15:48いやarray of const Uをremove_extentするとconst Uが返るぞ、どこにconst消える要素があるんだ
2011-09-02 17:17:04ん?でも待てよ?template argument deductionでもconst pointerのconstは消えないはずだ
2011-09-02 17:19:04constexpr が持て囃されている今,あえて僕はメタプログラミングを選ぶことにするぜ! http://t.co/rmKMHCi
2011-09-02 17:25:35const T &にconst char *を渡してもconst外れないのに、const char[N]を渡すとconst外れるのは罠だと思う
2011-09-02 17:26:08sprout::make_clone<Cont>(args...) は args から fixed_container_traits<Cont>::clone_type を構築する。
2011-09-02 17:34:43make_clone の挙動は sprout::make_clone_functor を特殊化することでユーザが制御できる。
2011-09-02 17:36:09sprout::remake_clone<Cont>(other, args...) はデフォルトで make_clone<Cont>(args...) と同じ挙動をするが、ユーザ側で特殊化する際に other を使ってごにょごにょできる。
2011-09-02 17:41:56other の型は Cont から clone_type, internal_type, fixed_container_type, あるいは rebind_fixed_size によって導出できる型のいずれかである。
2011-09-02 17:43:39ほとんど sub_array のための特殊化の仕組みなのだけど、作者以外の誰かがこれを見て俺々コンテナアダプタを作れそうかというと……うーん。
2011-09-02 17:47:30