Skip to content

Commit 6c88a13

Browse files
committed
Reqires that the generic overload is not an enum type
1 parent 5ca111a commit 6c88a13

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/preferences/configobject.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ template <class ValueType> class ConfigObject {
182182

183183
// Returns the value for key, converted to ResultType. If key is not present
184184
// or the value cannot be converted to ResultType, returns default_value.
185-
template <class ResultType>
185+
template<class ResultType>
186+
requires(!std::is_enum_v<ResultType>)
186187
ResultType getValue(const ConfigKey& key, const ResultType& default_value) const;
187188
QString getValue(const ConfigKey& key, const char* default_value) const;
188189
template<typename EnumType>

0 commit comments

Comments
 (0)