C++/TemplateMetaProgramming
■ このスレッドは過去ログ倉庫に格納されています
0233デフォルトの名無しさん
2009/10/17(土) 18:17:29>228 の言うとおり boost::mpl::string でできるだろう。
ドキュメントのサンプルより:
>typedef mpl::string<'hell','o wo','rld'> hello;
>typedef mpl::push_back<hello, mpl::char_<'!'> >::type hello2;
>
>BOOST_ASSERT(0 == std::strcmp(mpl::c_str<hello2>::value, "hello world!"));
■ このスレッドは過去ログ倉庫に格納されています