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
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
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 c