Fix compile error on Apple Clang
Needs to compile with `CMAKE_OSX_DEPLOYMENT_TARGET` of 10.14 at least to have `std::optional<>::value()` available. So we have to increase the minimum required compiler version, but that requires more changes. Just fix the build error for now.
This commit is contained in:
parent
937d89afba
commit
bcf49d13e5
Notes:
blender-bot
2023-02-14 01:35:49 +01:00
Referenced by commit 0949140d36
, Fix compile error
Referenced by issue #76783, C++ Version Upgrade
|
@ -237,7 +237,7 @@ void NodePort::to_dot_string(std::stringstream &ss) const
|
|||
{
|
||||
m_node->export__as_id(ss);
|
||||
if (m_port_name.has_value()) {
|
||||
ss << ":" << m_port_name.value();
|
||||
ss << ":" << *m_port_name;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue