- 740 名前:デフォルトの名無しさん mailto:sage [2008/07/12(土) 08:33:12 ]
- >>738
template<typename T> struct hoge_chk{hoge_chk(){ use_float_or_double(); }}; template<> struct hoge_chk<float>{}; template<> struct hoge_chk<double>{}; template<typename T> void hoge(T arg){ hoge_chk<T>(); ... }
|

|