meta: avoid warnings due to unused variables

This commit is contained in:
Michele Caini
2022-08-30 12:26:19 +02:00
parent 560a3f664e
commit 304d8a80be

View File

@@ -20,12 +20,12 @@ template<typename Type, typename It>
class meta_range_iterator final {
template<typename Value>
auto to_value(int, const Value &value) const -> decltype(*value, Type{}) {
return &*it->second;
return &*value;
}
template<typename Value>
Type to_value(char, const Value &value) const {
return &it->second;
return &value;
}
public: