Commit 95c07aea authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: incorrect specialization for Swap(HashSet..)

parent 15948a96
......@@ -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,
......
Markdown is supported
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