This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Add workaround to std::variant for Clang bug 31852


This makes it possible to use our std::variant with Clang, as well as
some minor tweaks to avoid ADL (so the compiler doesn't waste time
looking in associated namespaces) and adjust whitespace.

       * include/std/variant (__get): Qualify calls to avoid ADL.
       (__select_index): Adjust whitespace.
       (variant): Add using-declaration to workaround Clang bug.

Tested powerpc64le-linux, committed to trunk.. I'll backport to
gcc-7-branch too.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]