https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127252
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to songb432 from comment #8) > 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 See what I wrote, you can just write return some_meta_function(remove_cv(^^some_dependent_type)); That is fast and required to work by the standard.
