C++/TemplateMetaProgramming
■ このスレッドは過去ログ倉庫に格納されています
0210デフォルトの名無しさん
2009/09/20(日) 02:11:35>>209
なるほど
const T* top;
const T* first;
これで、いけました、処でまだconst 剥がしに拘るんだけど
template <class T>
struct remove_const {
typedef T type;
};
template <class T>
struct remove_const<const T> {
typedef T type;
};
こんなtemplate があったとしも、これでは
static const char* foo = "FOO";
この、const 剥がせません無いのですが、いい方法が無いんでしょうか?
■ このスレッドは過去ログ倉庫に格納されています