[complement-svn] SF.net SVN: complement:[1968] trunk/complement/explore/include/misc/ type_traits.h
Status: Pre-Alpha
Brought to you by:
complement
|
From: <com...@us...> - 2008-09-10 06:18:31
|
Revision: 1968
http://complement.svn.sourceforge.net/complement/?rev=1968&view=rev
Author: complement
Date: 2008-09-10 06:18:29 +0000 (Wed, 10 Sep 2008)
Log Message:
-----------
replace is_reference by is_lvalue_reference
Modified Paths:
--------------
trunk/complement/explore/include/misc/type_traits.h
Modified: trunk/complement/explore/include/misc/type_traits.h
===================================================================
--- trunk/complement/explore/include/misc/type_traits.h 2008-09-09 06:28:34 UTC (rev 1967)
+++ trunk/complement/explore/include/misc/type_traits.h 2008-09-10 06:18:29 UTC (rev 1968)
@@ -1,4 +1,4 @@
-// -*- C++ -*- Time-stamp: <08/09/09 10:22:13 ptr>
+// -*- C++ -*- Time-stamp: <08/09/10 09:50:18 ptr>
/*
* Copyright (c) 2007, 2008
@@ -277,21 +277,21 @@
// public true_type
// { };
-template <class _Tp>
-struct is_reference :
- public false_type
-{ };
+// template <class _Tp>
+// struct is_reference :
+// public false_type
+// { };
-template <class _Tp>
-struct is_reference<_Tp&> :
- public true_type
-{ };
+// template <class _Tp>
+// struct is_reference<_Tp&> :
+// public true_type
+// { };
template <class _Tp>
struct is_function :
public integral_constant<bool, !(detail::__instance<_Tp>::__value
|| detail::__is_union_or_class<_Tp>::value
- || is_reference<_Tp>::value
+ || is_lvalue_reference<_Tp>::value
|| is_void<_Tp>::value)>
{ };
@@ -375,7 +375,7 @@
public integral_constant<bool, !(is_fundamental<_Tp>::value
|| is_array<_Tp>::value
|| is_pointer<_Tp>::value
- || is_reference<_Tp>::value
+ || is_lvalue_reference<_Tp>::value
|| is_member_pointer<_Tp>::value
|| is_function<_Tp>::value
|| detail::__is_union_or_class<_Tp>::value) >
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|