mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Fix warning C4702: unreachable code
This commit is contained in:
@@ -84,8 +84,9 @@ 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");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user