[Bf-blender-cvs] [bcf49d13e53] master: Fix compile error on Apple Clang

Julian Eisel noreply at git.blender.org
Mon Jun 29 17:28:49 CEST 2020


Commit: bcf49d13e53454cf79490a7e825c4a44a0144d11
Author: Julian Eisel
Date:   Mon Jun 29 17:27:55 2020 +0200
Branches: master
https://developer.blender.org/rBbcf49d13e53454cf79490a7e825c4a44a0144d11

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.

===================================================================

M	source/blender/blenlib/intern/dot_export.cc

===================================================================

diff --git a/source/blender/blenlib/intern/dot_export.cc b/source/blender/blenlib/intern/dot_export.cc
index aa1b09e1df3..ff39265d681 100644
--- a/source/blender/blenlib/intern/dot_export.cc
+++ b/source/blender/blenlib/intern/dot_export.cc
@@ -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;
   }
 }



More information about the Bf-blender-cvs mailing list