https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127252
songb432 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|WONTFIX |FIXED
--- Comment #8 from songb432 at gmail dot com ---
(In reply to Drea Pinski from comment #7)
> std::remove_cv_t is done as: ...
> That is just as fast as what your company is doing really and GCC does not
> mangle __remove_cv so it won't work where you need to have __remove_cv
> mangled. This is why GCC uses using in a struct here for the mangling part.
> I think your company is micro-optimizing things too much.
I complained, but it doesn't work, the code reviewer insists that
micro-optimizing approach to be applied everywhere (and the job is so well-paid
that I don't want to leave).
I wish GCC could support it like in Clang(experimental) so that I don't have to
write something like this hundreds of times:
#if defined(__clang__)
return some_meta_function(^^__remove_cv(some_dependent_type));
#else
using cv_removed_type = __remove_cv(some_dependent_type);
return some_meta_function(^^cv_removed_type);
#endif