define dump()/load() APIs on;y when using deterministic phmap.

This commit is contained in:
greg
2019-09-02 08:56:28 -04:00
parent 77ef910921
commit 43913a33b5
+4
View File
@@ -1534,11 +1534,13 @@ public:
}
}
#ifndef PHMAP_NON_DETERMINISTIC
template<typename OutputArchive>
bool dump(OutputArchive&);
template<typename InputArchive>
bool load(InputArchive&);
#endif
void rehash(size_t n) {
if (n == 0 && capacity_ == 0) return;
@@ -3147,11 +3149,13 @@ public:
a.swap(b);
}
#ifndef PHMAP_NON_DETERMINISTIC
template<typename OutputArchive>
bool dump(OutputArchive& ar);
template<typename InputArchive>
bool load(InputArchive& ar);
#endif
private:
template <class Container, typename Enabler>