diff --git a/src/OpenFOAM/db/typeInfo/typeInfo.H b/src/OpenFOAM/db/typeInfo/typeInfo.H index 95d6c79c7f..0011f17d45 100644 --- a/src/OpenFOAM/db/typeInfo/typeInfo.H +++ b/src/OpenFOAM/db/typeInfo/typeInfo.H @@ -167,7 +167,7 @@ inline To& refCast(From& r, const dictionary& d) //- Check if dynamic_cast to TargetType is possible template -inline bool isA(const Type& t) +inline const TargetType* isA(const Type& t) { const Type* p = &t; return dynamic_cast(p);