diff mbox series

[05/10] libstdc++: use std::is_void instead of __is_void in helper_functions.h

Message ID 20230326043032.11096-6-kmatsui@cs.washington.edu
State New
Headers show
Series c++, libstdc++: get std::is_object to dispatch to new built-in traits | expand

Commit Message

Ken Matsui March 26, 2023, 4:30 a.m. UTC
This patch uses std::is_void in helper_function.h instead of __is_void defined
in cpp_type_traits.h to avoid conflicts with the __is_void built-in trait to
be implemented.

libstdc++-v3/ChangeLog:

	* include/debug/helper_function.h (_DiffTraits): Use std::void
	instead of __is_void defined in cpp_type_traits.h

Signed-off-by: Ken Matsui <kmatsui@cs.washington.edu>
---
 libstdc++-v3/include/debug/helper_functions.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libstdc++-v3/include/debug/helper_functions.h b/libstdc++-v3/include/debug/helper_functions.h
index dccf8e9e5e6..e364a630d2c 100644
--- a/libstdc++-v3/include/debug/helper_functions.h
+++ b/libstdc++-v3/include/debug/helper_functions.h
@@ -67,7 +67,7 @@  namespace __gnu_debug
 	typename std::iterator_traits<_Iterator>::difference_type _ItDiffType;
 
       template<typename _DiffType,
-	       typename = typename std::__is_void<_DiffType>::__type>
+	       typename = typename std::is_void<_DiffType>::type>
 	struct _DiffTraits
 	{ typedef _DiffType __type; };