From 05ceb5ae79a3e1c30db984482004dc96b8601d95 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Tue, 29 Sep 2020 02:26:16 +0900 Subject: [PATCH] fix: workaround for error around SFINAE in MSVC avoid lambda with template argument --- toml/get.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/toml/get.hpp b/toml/get.hpp index 25f4a1c..5095caf 100644 --- a/toml/get.hpp +++ b/toml/get.hpp @@ -338,8 +338,10 @@ get(const basic_value& v) {v.location(), "here"} })); } - std::transform(ar.cbegin(), ar.cend(), container.begin(), - [](const basic_value& x){return ::toml::get(x);}); + for(std::size_t i=0; i(ar[i]); + } return container; }