range-v3 icon indicating copy to clipboard operation
range-v3 copied to clipboard

Declaration conflict with clang 12 on macOS

Open aacirino opened this issue 4 years ago • 1 comments

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.

aacirino avatar Jul 14 '21 12:07 aacirino

Hi, @aacirino Did you handle it in any way? Could you, please, share a workaround if any?

ngrodzitski avatar Jan 02 '24 21:01 ngrodzitski