make dump() function const (issue #44)

This commit is contained in:
greg
2020-03-27 19:30:40 -04:00
parent 5ba0c2d619
commit 23e651c2d5
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1498,7 +1498,7 @@ public:
#ifndef PHMAP_NON_DETERMINISTIC
template<typename OutputArchive>
bool dump(OutputArchive&);
bool dump(OutputArchive&) const;
template<typename InputArchive>
bool load(InputArchive&);
@@ -3113,7 +3113,7 @@ public:
#ifndef PHMAP_NON_DETERMINISTIC
template<typename OutputArchive>
bool dump(OutputArchive& ar);
bool dump(OutputArchive& ar) const;
template<typename InputArchive>
bool load(InputArchive& ar);
+2 -2
View File
@@ -47,7 +47,7 @@ namespace container_internal {
// ------------------------------------------------------------------------
template <class Policy, class Hash, class Eq, class Alloc>
template<typename OutputArchive>
bool raw_hash_set<Policy, Hash, Eq, Alloc>::dump(OutputArchive& ar) {
bool raw_hash_set<Policy, Hash, Eq, Alloc>::dump(OutputArchive& ar) const {
static_assert(type_traits_internal::IsTriviallyCopyable<value_type>::value,
"value_type should be trivially copyable");
@@ -117,7 +117,7 @@ template <size_t N,
class Mtx_,
class Policy, class Hash, class Eq, class Alloc>
template<typename OutputArchive>
bool parallel_hash_set<N, RefSet, Mtx_, Policy, Hash, Eq, Alloc>::dump(OutputArchive& ar) {
bool parallel_hash_set<N, RefSet, Mtx_, Policy, Hash, Eq, Alloc>::dump(OutputArchive& ar) const {
static_assert(type_traits_internal::IsTriviallyCopyable<value_type>::value,
"value_type should be trivially copyable");