From 5895a897b5b05db6d53b3b5e68fad1d653abf209 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 26 Nov 2012 23:53:36 +0000 Subject: [PATCH] functional (__is_socketlike): Change from class template to alias template. * include/std/functional (__is_socketlike): Change from class template to alias template. From-SVN: r193832 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/std/functional | 10 ++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f7f43fefef6..c6d0687eb7b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2012-11-26 Jonathan Wakely + + * include/std/functional (__is_socketlike): Change from class + template to alias template. + 2012-11-26 Jonathan Wakely PR libstdc++/55463 diff --git a/libstdc++-v3/include/std/functional b/libstdc++-v3/include/std/functional index 1a98127f4e2..0d8fbd6bdae 100644 --- a/libstdc++-v3/include/std/functional +++ b/libstdc++-v3/include/std/functional @@ -1503,14 +1503,8 @@ _GLIBCXX_HAS_NESTED_TYPE(result_type) // Trait type used to remove std::bind() from overload set via SFINAE // when first argument has integer type, so that std::bind() will // not be a better match than ::bind() from the BSD Sockets API. - template - class __is_socketlike - { - typedef typename decay<_Tp>::type _Tp2; - public: - static const bool value = - is_integral<_Tp2>::value || is_enum<_Tp2>::value; - }; + template::type> + using __is_socketlike = __or_, is_enum<_Tp2>>; template struct _Bind_helper