mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 09:08:08 +08:00
fix: correctly deduce return value of visitor
This commit is contained in:
@@ -930,7 +930,7 @@ visit(Visitor&& visitor, toml::value& v)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename Visitor>
|
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)
|
visit(Visitor&& visitor, toml::value&& v)
|
||||||
{
|
{
|
||||||
switch(v.type())
|
switch(v.type())
|
||||||
|
Reference in New Issue
Block a user