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());