Fix warning C4702: unreachable code

This commit is contained in:
Osyotr
2025-10-03 14:10:07 +03:00
committed by Thomas Krijnen
parent 804a670454
commit 92e25ce3cb
+2 -1
View File
@@ -84,8 +84,9 @@ namespace ifcopenshell {
}
if constexpr (HasDefault<Derived>()) {
return Derived::defaultvalue;
} else {
throw std::runtime_error("Setting not set");
}
throw std::runtime_error("Setting not set");
}
}