Closed FirstLoveLife closed 5 years ago
I'm quite surprised considering I mainly use GCC and libstdc++ when developing. I will look at that issue when I find some time.
I managed to reproduce the bug with the latest GCC, which means that SFINAE or template instantiation is not handled exactly the same way for some reason compared to previous versions. Your fix wasn't enough but I did include it too because it was a nice pedantic addition :)
libcxx/const_pair_U_V.cpp
andlibcxx/rv_pair_U_V.cpp
cannot pass compilation:clang has no errors and can pass complaination with libcxx: