ericniebler / range-v3

Range library for C++14/17/20, basis for C++20's std::ranges
Other
4.06k stars 437 forks source link

Error when compiling with complex.h #1729

Closed knjmooney closed 1 year ago

knjmooney commented 1 year ago

Reproducer: https://godbolt.org/z/b89bYKohM

This is due to a collision with the I macro from https://en.cppreference.com/w/c/numeric/complex/I

Similar fix by fmt: https://github.com/fmtlib/fmt/commit/5f774c0aed4af6494b412cd3883e0f09295bd79d