mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Fix warning C4702: unreachable code
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user