mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-22 20:30:11 +00:00
fix: correctly deduce return value of visitor
This commit is contained in:
parent
891a61a5e3
commit
65c2c3c238
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user