From a19f74515eb1acee3f269dcac8d458929e835f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=BA=E5=8F=B2=E8=89=B2=E7=AC=9B?= <48883004+cishisedis@users.noreply.github.com> Date: Tue, 26 Mar 2019 12:21:43 +0100 Subject: [PATCH] simpler type signature --- include/yaml-cpp/node/impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/yaml-cpp/node/impl.h b/include/yaml-cpp/node/impl.h index 1170def..747e140 100644 --- a/include/yaml-cpp/node/impl.h +++ b/include/yaml-cpp/node/impl.h @@ -120,7 +120,7 @@ struct as_if { const Node& node; template - auto operator()() const -> typename std::pair::decode), T>::second_type { + typename std::pair::decode), T>::second_type operator()() const { if (!node.m_pNode) throw TypedBadConversion(node.Mark()); @@ -132,7 +132,7 @@ struct as_if { #ifdef __cpp_lib_optional template - auto operator()() const -> typename std::pair::decode_optional), T>::second_type { + typename std::pair::decode_optional), T>::second_type operator()() const { if (!node.m_pNode) throw TypedBadConversion(node.Mark());