fix: correctly deduce return value of visitor

This commit is contained in:
ToruNiina 2019-03-18 10:53:04 +09:00
parent 891a61a5e3
commit 65c2c3c238

View File

@ -930,7 +930,7 @@ visit(Visitor&& visitor, toml::value& v)
}
template<typename Visitor>
detail::return_type_of_t<Visitor, toml::boolean&>
detail::return_type_of_t<Visitor, toml::boolean&&>
visit(Visitor&& visitor, toml::value&& v)
{
switch(v.type())