add comment to VC6 hack
This commit is contained in:
@@ -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) \
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user