diff --git a/src/OpenFOAM/db/runTimeSelection/construction/runTimeSelectionTables.H b/src/OpenFOAM/db/runTimeSelection/construction/runTimeSelectionTables.H index 336927c38f..a6a2a528df 100644 --- a/src/OpenFOAM/db/runTimeSelection/construction/runTimeSelectionTables.H +++ b/src/OpenFOAM/db/runTimeSelection/construction/runTimeSelectionTables.H @@ -52,8 +52,12 @@ Description typedef autoPtr (*argNames##ConstructorPtr)argList; \ \ /* Construct from argList function table type */ \ - typedef HashTable \ - argNames##ConstructorTable; \ + typedef HashTable \ + < \ + argNames##ConstructorPtr, \ + ::Foam::word, \ + ::Foam::string::hasher \ + > argNames##ConstructorTable; \ \ /* Construct from argList function pointer table pointer */ \ static argNames##ConstructorTable* argNames##ConstructorTablePtr_; \ @@ -77,7 +81,7 @@ Description \ explicit add##argNames##ConstructorToTable \ ( \ - const word& lookup = baseType##Type::typeName \ + const ::Foam::word& lookup = baseType##Type::typeName \ ) \ { \ construct##argNames##ConstructorTables(); \ @@ -109,7 +113,7 @@ Description { \ public: \ \ - const word name; /* Lookup name for later removal */ \ + const ::Foam::word name; /* Lookup name for later removal */ \ \ static autoPtr New argList \ { \ @@ -118,7 +122,7 @@ Description \ explicit addRemovable##argNames##ConstructorToTable \ ( \ - const word& lookup = baseType##Type::typeName \ + const ::Foam::word& lookup = baseType##Type::typeName \ ) \ : \ name(lookup) \ @@ -152,8 +156,12 @@ Description typedef autoPtr (*argNames##ConstructorPtr)argList; \ \ /* Construct from argList function table type */ \ - typedef HashTable \ - argNames##ConstructorTable; \ + typedef HashTable \ + < \ + argNames##ConstructorPtr, \ + ::Foam::word, \ + ::Foam::string::hasher \ + > argNames##ConstructorTable; \ \ /* Construct from argList function pointer table pointer */ \ static argNames##ConstructorTable* argNames##ConstructorTablePtr_; \ @@ -177,7 +185,7 @@ Description \ explicit add##argNames##ConstructorToTable \ ( \ - const word& lookup = baseType##Type::typeName \ + const ::Foam::word& lookup = baseType##Type::typeName \ ) \ { \ construct##argNames##ConstructorTables(); \ @@ -215,7 +223,7 @@ Description { \ public: \ \ - const word name; /* Lookup name for later removal */ \ + const ::Foam::word name; /* Lookup name for later removal */ \ \ static autoPtr New##baseType argList \ { \ @@ -224,7 +232,7 @@ Description \ explicit addRemovable##argNames##ConstructorToTable \ ( \ - const word& lookup = baseType##Type::typeName \ + const ::Foam::word& lookup = baseType##Type::typeName \ ) \ : \ name(lookup) \ diff --git a/src/OpenFOAM/db/runTimeSelection/memberFunctions/memberFunctionSelectionTables.H b/src/OpenFOAM/db/runTimeSelection/memberFunctions/memberFunctionSelectionTables.H index a92954fbd6..df70160dad 100644 --- a/src/OpenFOAM/db/runTimeSelection/memberFunctions/memberFunctionSelectionTables.H +++ b/src/OpenFOAM/db/runTimeSelection/memberFunctions/memberFunctionSelectionTables.H @@ -46,8 +46,12 @@ Description typedef returnType (*memberFunction##argNames##MemberFunctionPtr)argList; \ \ /* Construct from argList function table type */ \ - typedef HashTable \ - memberFunction##argNames##MemberFunctionTable; \ + typedef HashTable \ + < \ + memberFunction##argNames##MemberFunctionPtr, \ + ::Foam::word, \ + ::Foam::string::hasher \ + > memberFunction##argNames##MemberFunctionTable; \ \ /* Construct from argList function pointer table pointer */ \ static memberFunction##argNames##MemberFunctionTable* \ @@ -61,7 +65,7 @@ Description \ explicit add##memberFunction##argNames##MemberFunctionToTable \ ( \ - const word& lookup = baseType##Type::typeName \ + const ::Foam::word& lookup = baseType##Type::typeName \ ) \ { \ construct##memberFunction##argNames##MemberFunctionTables(); \