[committed] libstdc++: Fix uses of non-reserved names in headers
Hi, instead of uglyfing all the libstdc++ code wouldn't it be simpler to just ignore all non-reserved macro expansions (+ some special ones like assert) inside system headers on compiler level? Regards, Maciej
[PATCH] tree: Fix up tree_code_{length,type}
Hi, you can emulate C++17 inline variables in C++11 with either of the two ways: 1) via a template helper template struct Helper { static constexpr unsigned value[4] = {1, 2, 3, 4}; }; template constexpr unsigned Helper::value[4]; static constexpr auto& arr = Helper<>::value; 2) extern constexpr + weak attribute [[gnu::weak]] extern constexpr unsigned arr[] = {1, 2, 3, 4}; Regards, Maciej
Re: [committed] libstdc++: Simplify variant access functions
Hi, variant getter can be implemented in C++17 without using "recursive" calls, but by generating a list of member pointers and applying them with fold expression. Here's an example: https://godbolt.org/z/3vcKjWjPG Regards, Maciej