https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127252

songb432 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WONTFIX                     |FIXED

--- Comment #6 from songb432 at gmail dot com ---
(In reply to Jakub Jelinek from comment #5)
(In reply to Drea Pinski from comment #4)
> .
> Why? The builtin type traits are not designed for direct user use. Use the
> std:: ones.


In large scale template libraries and large projects using large scale template
libraries, to speed up compilation a little, my company uses ``#define
fastest_remove_cv __remove_cv`` and ``fastest_remove_cv(some_dependent_type)``
to replace every use of ``std::remove_cv_t``. It's easily tested that builtins
is much more faster than their counterparts in <type_traits>, possibly faster
than their counterparts in <meta> as well (when the input type is not spliced
from a meta::info).

GCC and Clang are the most widely used compilers, and their builtins always
share the same names.

Reply via email to