patrikhuber / eos

A lightweight 3D Morphable Face Model library in modern C++
Apache License 2.0
1.91k stars 597 forks source link

Compilation with std::variant fails with clang and libstdc++ #174

Open patrikhuber opened 6 years ago

patrikhuber commented 6 years ago

This only affects the clang + libstdc++ combo. MSVC and gcc are fine.

clang has a bug that causes std::variant compilation to fail with libstdc++ from gcc-7. Apparently the bug is not fixed yet, not even in the latest clang trunk. This sort-of makes clang with std::variant a bit unusable currently. We could maybe force eos::cpp17::variant to alias to MPark.Variant for that combo.

https://bugs.llvm.org/show_bug.cgi?id=31852 https://bugs.llvm.org/show_bug.cgi?id=33222 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=877838