diff --git a/code/STEPFile.h b/code/STEPFile.h index f958956bc..3c63bd700 100644 --- a/code/STEPFile.h +++ b/code/STEPFile.h @@ -192,19 +192,19 @@ namespace STEP { } // utilities to deal with SELECT entities, which currently lack automatic - // conversion support. - template - const T& ResolveSelect(const DB& db) const { - return Couple(db).MustGetObject(To())->To(); - } - - template - const T* ResolveSelectPtr(const DB& db) const { - const EXPRESS::ENTITY* e = ToPtr(); - return e?Couple(db).MustGetObject(*e)->ToPtr():(const T*)0; - } - - public: + // conversion support. + template + const T& ResolveSelect(const DB& db) const { + return Couple(db).MustGetObject(To())->template To(); + } + + template + const T* ResolveSelectPtr(const DB& db) const { + const EXPRESS::ENTITY* e = ToPtr(); + return e?Couple(db).MustGetObject(*e)->template ToPtr():(const T*)0; + } + + public: /** parse a variable from a string and set 'inout' to the character * behind the last consumed character. An optional schema enables,