FIX: should not throw in noexcept function
Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: I6753615903d218698fb5cabafcba46e97b8fdf18
This commit is contained in:
parent
766abf92fa
commit
0d1b8b18ed
|
@ -1660,7 +1660,7 @@ public:
|
||||||
ConfigOptionEnumsGenericTempl& operator= (const ConfigOption* opt) { this->set(opt); return *this; }
|
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() { return this->values < rhs.values; }
|
||||||
|
|
||||||
bool operator==(const ConfigOptionInts& rhs) const throw()
|
bool operator==(const ConfigOptionInts& rhs) const
|
||||||
{
|
{
|
||||||
if (rhs.type() != this->type())
|
if (rhs.type() != this->type())
|
||||||
throw ConfigurationError("ConfigOptionEnumsGeneric: Comparing incompatible types");
|
throw ConfigurationError("ConfigOptionEnumsGeneric: Comparing incompatible types");
|
||||||
|
|
Loading…
Reference in New Issue