mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
fix: make return type rvalue when rvalue is passed
This commit is contained in:
@@ -130,7 +130,7 @@ get(const basic_value<C, M, V>& v)
|
||||
|
||||
template<typename T, typename C,
|
||||
template<typename ...> class M, template<typename ...> class V>
|
||||
inline detail::enable_if_t<std::is_same<T, std::string>::value, std::string> const&
|
||||
inline detail::enable_if_t<std::is_same<T, std::string>::value, std::string>&&
|
||||
get(basic_value<C, M, V>&& v)
|
||||
{
|
||||
return std::move(v.template cast<value_t::string>().str);
|
||||
|
Reference in New Issue
Block a user