정규 C 스타일 문자열을 허용하는 템플릿 전문화에 대한 올바른 구문을 얻는 데 어려움이 있습니다. C 스타일 문자열의 템플릿 전문화
namespace RubyUtils
{
template<class T> VALUE toValue(const T& v);
};
template<> VALUE toValue(char const* & v)
{
return toValue<string>(v);
}
다음 호출 사이트
return RubyUtils::toValue("Life the universe and everything");
에서 예를
를 들어unresolved external symbol "unsigned long __cdecl RubyUtils::toValue<char const [33]>(char const (&)[33])"
가 어떻게 C 스타일 문자열을 전달 가능하게 할 수있는 전문성을 구성해야 오류를 준다?
UPDATE :는 올바른 구문 템플릿 => 템플릿을 가지고 템플릿 전문화를 고정 <>
두 템플릿이 모두 네임 스페이스에없는 이유는 무엇입니까? – Jon