summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/std/functional
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-26 23:53:36 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-26 23:53:36 +0000
commit30be0cc7dddc46023a8b42827434408ddcf1b05c (patch)
tree7caaf301a903fd0fca38a136ca3293bd00134a72 /libstdc++-v3/include/std/functional
parentb1983c221f5d9f157f1ee5c2a118bd72e913ae45 (diff)
downloadppe42-gcc-30be0cc7dddc46023a8b42827434408ddcf1b05c.tar.gz
ppe42-gcc-30be0cc7dddc46023a8b42827434408ddcf1b05c.zip
* include/std/functional (__is_socketlike): Change from class
template to alias template. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193832 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/functional')
-rw-r--r--libstdc++-v3/include/std/functional10
1 files changed, 2 insertions, 8 deletions
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<typename _Tp>
- class __is_socketlike
- {
- typedef typename decay<_Tp>::type _Tp2;
- public:
- static const bool value =
- is_integral<_Tp2>::value || is_enum<_Tp2>::value;
- };
+ template<typename _Tp, typename _Tp2 = typename decay<_Tp>::type>
+ using __is_socketlike = __or_<is_integral<_Tp2>, is_enum<_Tp2>>;
template<bool _SocketLike, typename _Func, typename... _BoundArgs>
struct _Bind_helper
OpenPOWER on IntegriCloud