range-v3
range-v3 copied to clipboard
Declaration conflict with clang 12 on macOS
I installed range-v3 with vcpkg since its build conflicts with the ncurses header present in the macOS system includes. But then a conflict with clang's declaration prevents the use of range-v3:
error: /usr/local/include/range/v3/utility/common_type.hpp:116:12: error: declaration of 'common_type' in module obot follows declaration in the global module
struct common_type;
^
/usr/local/opt/llvm/include/c++/v1/type_traits:2347:29: note: previous declaration is here
struct _LIBCPP_TEMPLATE_VIS common_type;
I searched the issues and found no previous report of this issue.
Hi, @aacirino Did you handle it in any way? Could you, please, share a workaround if any?