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,10 +84,11 @@ namespace ifcopenshell {
} }
if constexpr (HasDefault<Derived>()) { if constexpr (HasDefault<Derived>()) {
return Derived::defaultvalue; return Derived::defaultvalue;
} } else {
throw std::runtime_error("Setting not set"); throw std::runtime_error("Setting not set");
} }
} }
}
bool has() const { bool has() const {
if constexpr (false && std::is_same_v<T, std::vector<double>>) { if constexpr (false && std::is_same_v<T, std::vector<double>>) {