Compilation fix for libc++ after the previous commit
libc++ defines std::iter_swap() with a non-standard exception specification incompatible with the other other standard libraries and not compiling with our definition of swap() for wxUniCharRef anyhow, so disable iter_swap() specialization until https://llvm.org/bugs/show_bug.cgi?id=28559 is fixed.
This commit is contained in:
@@ -3991,7 +3991,10 @@ namespace std
|
|||||||
// iterator::reference being different from "iterator::value_type&", in C++11
|
// iterator::reference being different from "iterator::value_type&", in C++11
|
||||||
// iter_swap() just calls swap() by default and this doesn't work for us as
|
// iter_swap() just calls swap() by default and this doesn't work for us as
|
||||||
// wxUniCharRef is not the same as "wxUniChar&".
|
// wxUniCharRef is not the same as "wxUniChar&".
|
||||||
#if __cplusplus >= 201103L
|
//
|
||||||
|
// Unfortunately currently iter_swap() can't be specialized when using libc++,
|
||||||
|
// see https://llvm.org/bugs/show_bug.cgi?id=28559
|
||||||
|
#if (__cplusplus >= 201103L) && !defined(_LIBCPP_VERSION)
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user