FIX: should not throw in noexcept function

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I6753615903d218698fb5cabafcba46e97b8fdf18
This commit is contained in:
salt.wei 2023-06-21 18:35:10 +08:00 committed by Lane.Wei
parent 766abf92fa
commit 0d1b8b18ed
1 changed files with 1 additions and 1 deletions

View File

@ -1660,7 +1660,7 @@ public:
ConfigOptionEnumsGenericTempl& operator= (const ConfigOption* opt) { this->set(opt); return *this; }
bool operator< (const ConfigOptionInts& rhs) const throw() { return this->values < rhs.values; }
bool operator==(const ConfigOptionInts& rhs) const throw()
bool operator==(const ConfigOptionInts& rhs) const
{
if (rhs.type() != this->type())
throw ConfigurationError("ConfigOptionEnumsGeneric: Comparing incompatible types");