Skip to content
Snippets Groups Projects
Unverified Commit f151db0f authored by Ken Matsui's avatar Ken Matsui
Browse files

libstdc++: Use _GLIBCXX_USE_BUILTIN_TRAIT


This patch uses _GLIBCXX_USE_BUILTIN_TRAIT macro instead of __has_builtin
in the type_traits header for traits that have a corresponding fallback
non-built-in implementation.  This macro supports to toggle the use of
built-in traits in the type_traits header through
_GLIBCXX_DO_NOT_USE_BUILTIN_TRAITS macro, without needing to modify the
source code.

libstdc++-v3/ChangeLog:

	* include/std/type_traits: Use _GLIBCXX_USE_BUILTIN_TRAIT.

Signed-off-by: default avatarKen Matsui <kmatsui@gcc.gnu.org>
Reviewed-by: default avatarPatrick Palka <ppalka@redhat.com>
Reviewed-by: default avatarJonathan Wakely <jwakely@redhat.com>
parent 3ab4c381
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment