Commit 360ccea2 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

COMP: incorrect specialization for Swap(HashSet..)

parent f603e3e1
......@@ -278,7 +278,11 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const HashSet<Key, Hash>& tbl)
// * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * //
template<class Key, class Hash>
void Foam::Swap(const HashSet<Key, Hash>& a, const HashSet<Key, Hash>& b)
inline void Foam::Swap
(
HashSet<Key, Hash>& a,
HashSet<Key, Hash>& b
)
{
a.swap(b);
}
......
......@@ -362,8 +362,8 @@ public:
// Global Functions
// Exchange contents of hash tables - see HashTable::swap().
template<class T, class Key, class Hash>
// Exchange contents of HashSets - see HashSet::swap().
template<class Key, class Hash>
inline void Swap
(
HashSet<Key, Hash>& a,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment