From 4ce891d0412f9067d5f1e388ce9c300a147f3488 Mon Sep 17 00:00:00 2001 From: Dmitriy Morozov Date: Wed, 13 Jul 2016 13:04:58 -0700 Subject: [PATCH] unordered_{map,set} serialization supports non-default template arguments --- include/diy/serialization.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/diy/serialization.hpp b/include/diy/serialization.hpp index 81f890683..80fd24468 100644 --- a/include/diy/serialization.hpp +++ b/include/diy/serialization.hpp @@ -336,11 +336,11 @@ namespace diy #ifndef BUILD_GYP // C++11 does not work right in my nwjs- and node-gyp builds--TP #if __cplusplus > 199711L // C++11 - // save/load for std::unordered_map - template - struct Serialization< std::unordered_map > + // save/load for std::unordered_map + template + struct Serialization< std::unordered_map > { - typedef std::unordered_map Map; + typedef std::unordered_map Map; static void save(BinaryBuffer& bb, const Map& m) { @@ -363,11 +363,11 @@ namespace diy } }; - // save/load for std::unordered_set - template - struct Serialization< std::unordered_set > + // save/load for std::unordered_set + template + struct Serialization< std::unordered_set > { - typedef std::unordered_set Set; + typedef std::unordered_set Set; static void save(BinaryBuffer& bb, const Set& m) {