mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +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>
|
||||
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())
|
||||
|
Reference in New Issue
Block a user