From dbbca80b8db86fd29b8d0292868618222aa3a19c Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 14 Mar 2006 19:19:26 +0000 Subject: [PATCH] add comment to VC6 hack --- stepmania/src/EnumHelper.h | 1 + stepmania/src/ThemeMetric.h | 1 + 2 files changed, 2 insertions(+) diff --git a/stepmania/src/EnumHelper.h b/stepmania/src/EnumHelper.h index 13a31c1628..f183f39782 100644 --- a/stepmania/src/EnumHelper.h +++ b/stepmania/src/EnumHelper.h @@ -94,6 +94,7 @@ static const RString EMPTY_STRING; return (X)(i+1); /*invalid*/ \ } \ template<> void StringTo( 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 void StringTo( const RString& s, T &out ); #define LuaXToString(X) \ diff --git a/stepmania/src/ThemeMetric.h b/stepmania/src/ThemeMetric.h index d4344bded0..4e77b232cf 100644 --- a/stepmania/src/ThemeMetric.h +++ b/stepmania/src/ThemeMetric.h @@ -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 void StringTo( const RString& s, T &out ); template class ThemeMetricEnum : public ThemeMetric