diff --git a/src/OpenFOAM/containers/HashTables/Map/Map.H b/src/OpenFOAM/containers/HashTables/Map/Map.H index d076afd2a3..533e7f520c 100644 --- a/src/OpenFOAM/containers/HashTables/Map/Map.H +++ b/src/OpenFOAM/containers/HashTables/Map/Map.H @@ -54,7 +54,6 @@ class Map { public: - // Constructors //- Construct given initial map size @@ -74,6 +73,15 @@ public: : HashTable >(map) {} + + + //- Return a null Map + static const Map& null() + { + Map* nullPtr = reinterpret_cast*>(0); + return *nullPtr; + } + };