2
:템플릿 클래스에서 템플릿 멤버 함수를 특수화하는 방법 (이미 specilzied)? 예를 들어
template<unsigned number>
struct A
{
template<class T>
static void Fun()
{}
};
template<>
struct A<1>
{
template<class T>
static void Fun()
{
/* some code here. */
}
};
그리고는 < 1> :: 재미()
template<>
template<>
void A<1>::Fun<int>()
{
/* some code here. */
}
가 작동하지 않는 것을 전문으로하고 싶다. 그것을하는 방법? 감사.
Splendid! 고마워요! – user1899020
@ user1899020 : 도움이 되셨습니다. :) –