Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2019-10-02 13:36:07 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-10-02 13:40:55 +0300
commita434b30667c02609c307d2871b27f24a64ff3f44 (patch)
treecd2d37a5ef6ddf7cc53a97a3ff44a287a066023d /extern/quadriflow/src/config.hpp
parentf97a64aa9b7b384f8221a1ef4f2eef9cde1238db (diff)
Fix building QuadriFlow with Clang on Windows
Boost 1.68 has a bug in its type_traits where it does not include the right header for the is_assignable macro when building with Clang. Temporarily work around it until we upgrade to a newer Boost version that fixes it. Differential Revision: https://developer.blender.org/D5962
Diffstat (limited to 'extern/quadriflow/src/config.hpp')
-rw-r--r--extern/quadriflow/src/config.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/extern/quadriflow/src/config.hpp b/extern/quadriflow/src/config.hpp
index 842b885a209..bf597ad0f39 100644
--- a/extern/quadriflow/src/config.hpp
+++ b/extern/quadriflow/src/config.hpp
@@ -1,6 +1,11 @@
#ifndef CONFIG_H_
#define CONFIG_H_
+/* Workaround a bug in boost 1.68, until we upgrade to a newer version. */
+#if defined(__clang__) && defined(WIN32)
+ #include <boost/type_traits/is_assignable.hpp>
+ using namespace boost;
+#endif
// Move settings to cmake to make CMake happy :)
// #define WITH_SCALE