Jens Thiel
03-24-04, 07:19 AM
something
Hi,is there a workaround for T::Parse (other than Convert::ChangeType) in the
following simplified template:
template<class T>
T GetConfig(String* key, T defaultValue)
{
String* value = settings->get_Item(key) ;
if( value )
return T::Parse( value );
return defaultValue;
}
the compiler (7.1) says:
error C2825: 'T::Parse': cannot form a qualified name
Thanks,
Jens.
--
http://ManagedXLL.net/ | http://jens-thiel.de/ | http://QuantLib.net/
Replace MSDN with my first name when replying to my email address!