From 456b9bbd80d6ade6d9c42bc6e6490ffe6027c18e Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Sun, 2 Jul 2017 19:00:37 -0700 Subject: [PATCH] specify hash to use (scoped_enum_hash) for variant::type hash table --- source/detail/serialization/xlsx_producer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/detail/serialization/xlsx_producer.cpp b/source/detail/serialization/xlsx_producer.cpp index a7e6e905..1c1c1626 100644 --- a/source/detail/serialization/xlsx_producer.cpp +++ b/source/detail/serialization/xlsx_producer.cpp @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -167,7 +168,7 @@ void xlsx_producer::write_content_types() const auto content_types_path = path("[Content_Types].xml"); begin_part(content_types_path); - const auto xmlns = "http://schemas.openxmlformats.org/package/2006/content-types"s; + const auto xmlns = "http://schemas.openxmlformats.org/package/2006/content-types"; write_start_element(xmlns, "Types"); write_namespace(xmlns, ""); @@ -286,7 +287,7 @@ void xlsx_producer::write_property(const std::string &name, const variant &value write_start_element(constants::ns("vt"), "vector"); auto vector = value.get>(); - std::unordered_set types; + std::unordered_set> types; for (const auto &element : vector) {