From 34270f2333c8fb103081c39d4a702e5daa8f94f9 Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Wed, 27 Sep 2017 17:39:59 -0400 Subject: [PATCH] specify return type of lambda to prevent compiler error --- source/detail/serialization/xlsx_producer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/detail/serialization/xlsx_producer.cpp b/source/detail/serialization/xlsx_producer.cpp index e181960e..346b22f0 100644 --- a/source/detail/serialization/xlsx_producer.cpp +++ b/source/detail/serialization/xlsx_producer.cpp @@ -2455,7 +2455,7 @@ void xlsx_producer::write_worksheet(const relationship &rel) write_start_element(xmlns, "pageMargins"); // TODO: there must be a better way to do this - auto remove_trailing_zeros = [](const std::string &n) { + auto remove_trailing_zeros = [](const std::string &n) -> std::string { auto decimal = n.find('.'); if (decimal == std::string::npos) return n;