From ecfc9d0c5afea6524efed1cc115a1de41357dda5 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sat, 28 Sep 2019 10:31:10 +0900 Subject: [PATCH] fix: make return type rvalue when rvalue is passed --- toml/get.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toml/get.hpp b/toml/get.hpp index 07b4b27..5d196cd 100644 --- a/toml/get.hpp +++ b/toml/get.hpp @@ -130,7 +130,7 @@ get(const basic_value& v) template class M, template class V> -inline detail::enable_if_t::value, std::string> const& +inline detail::enable_if_t::value, std::string>&& get(basic_value&& v) { return std::move(v.template cast().str);