Explicit template specializations require template<>.

This commit is contained in:
Steve Checkoway
2005-05-14 07:59:46 +00:00
parent 15ce1c2cdd
commit 135884ceb9
+4 -4
View File
@@ -43,19 +43,19 @@ void IPreference::SetFromStack( lua_State *L )
}
#define READFROM_AND_WRITETO( type, cast ) \
void Preference<type>::FromString( const CString &s ) \
template<> void Preference<type>::FromString( const CString &s ) \
{ \
::FromString( s, (cast)m_currentValue ); \
} \
CString Preference<type>::ToString() const \
template<> CString Preference<type>::ToString() const \
{ \
return ::ToString( (cast)m_currentValue ); \
} \
void Preference<type>::PushValue( lua_State *L ) const \
template<> void Preference<type>::PushValue( lua_State *L ) const \
{ \
LuaHelpers::PushStack( (cast)m_currentValue, L ); \
} \
void Preference<type>::SetFromStack( lua_State *L ) \
template<> void Preference<type>::SetFromStack( lua_State *L ) \
{ \
LuaHelpers::PopStack( (cast)m_currentValue, L ); \
}