const char*[2]
に変換したいパラメーターを持つ Visual Studio 2008 C++ アプリケーションがありますstd::pair< std::string, std::string >
。これを行う簡単な方法はありますか?
例えば:
typedef std::pair< std::string, std::string > Group;
const char* a[ 2 ] = { "buzz", "foo" };
Group z = a; // ???
// a->first.c_str() == "buzz"
// a->second.c_str() == "foo"
ありがとう、ポールH