template <typname {CStringA, CStringW} T>

int compare(const T s)

{

int c = compare(s.GetString());

return c;

}


template <typname {std::string, std::wstringT>

int compare(const T s)

{

int c = compare(s.c_str());

return c;

}


<std::string>compare(std::strind("abcd")); //이런식으로 쓰면 안됨


compare(std::string("abcd")); //이런식으로 가능해야만 함


이런게 있다는건 아니고 이런식으로 지원해 줬으면 좋겠다는 나의 간절한 바람...



혹은 이미 있는데 나만 모르나?