add comment to VC6 hack

This commit is contained in:
Chris Danford
2006-03-14 19:19:26 +00:00
parent 30e9778826
commit dbbca80b8d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -94,6 +94,7 @@ static const RString EMPTY_STRING;
return (X)(i+1); /*invalid*/ \ return (X)(i+1); /*invalid*/ \
} \ } \
template<> void StringTo<X>( const RString& s, X &out ) { out = StringTo##X( s ); } template<> void StringTo<X>( const RString& s, X &out ) { out = StringTo##X( s ); }
// VC6 hack: even templated functions can't differ by only return value. Move return value to a reference parameter.
template<class T> void StringTo( const RString& s, T &out ); template<class T> void StringTo( const RString& s, T &out );
#define LuaXToString(X) \ #define LuaXToString(X) \
+1
View File
@@ -219,6 +219,7 @@ public:
} }
}; };
// VC 6 hack: even templated functions can't differ by only return value. Move return value to a reference parameter.
template<class T> void StringTo( const RString& s, T &out ); template<class T> void StringTo( const RString& s, T &out );
template<class T> template<class T>
class ThemeMetricEnum : public ThemeMetric<RString> class ThemeMetricEnum : public ThemeMetric<RString>