[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepimlibs/akonadi
From:       Marc Mutz <mutz () kde ! org>
Date:       2010-08-09 20:03:33
Message-ID: 20100809200333.25131AC7E8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1161138 by mutz:

Akonadi::Item: try to support older compilers by using the trick boost's \
enable_if/member_template test uses (defaulted dummy parameter)

 M  +8 -8      item.h  


--- trunk/KDE/kdepimlibs/akonadi/item.h #1161137:1161138
@@ -422,28 +422,28 @@
 
     template <typename T>
     typename boost::enable_if_c<Internal::PayloadTrait<T>::isPolymorphic,void>::type
-    setPayloadImpl( const T & );
+    setPayloadImpl( const T &, const int * /*disambiguate*/ = 0 );
     template <typename T>
     typename boost::disable_if_c<Internal::PayloadTrait<T>::isPolymorphic,void>::type
  setPayloadImpl( const T & );
 
     template <typename T>
     typename boost::enable_if_c<Internal::PayloadTrait<T>::isPolymorphic,T>::type
-    payloadImpl() const;
+    payloadImpl( const int * /*disambiguate*/ = 0 ) const;
     template <typename T>
     typename boost::disable_if_c<Internal::PayloadTrait<T>::isPolymorphic,T>::type
     payloadImpl() const;
 
     template <typename T>
     typename boost::enable_if_c<Internal::PayloadTrait<T>::isPolymorphic,bool>::type
-    hasPayloadImpl() const;
+    hasPayloadImpl( const int * /*disambiguate*/ = 0 ) const;
     template <typename T>
     typename boost::disable_if_c<Internal::PayloadTrait<T>::isPolymorphic,bool>::type
  hasPayloadImpl() const;
 
     template <typename T>
     typename boost::enable_if<Internal::is_shared_pointer<T>,bool>::type
-    tryToClone( T * ) const;
+    tryToClone( T *, const int * /*disambiguate*/ = 0 ) const;
     template <typename T>
     typename boost::disable_if<Internal::is_shared_pointer<T>,bool>::type
     tryToClone( T * ) const;
@@ -491,7 +491,7 @@
 
 template <typename T>
 typename boost::enable_if_c<Internal::PayloadTrait<T>::isPolymorphic,T>::type
-Item::payloadImpl() const
+Item::payloadImpl( const int * ) const
 {
   typedef Internal::PayloadTrait<T> PayloadType;
   BOOST_STATIC_ASSERT(( PayloadType::isPolymorphic ));
@@ -529,7 +529,7 @@
 
 template <typename T>
 typename boost::enable_if<Internal::is_shared_pointer<T>,bool>::type
-Item::tryToClone( T * ret ) const
+Item::tryToClone( T * ret, const int * ) const
 {
   typedef Internal::PayloadTrait<T> PayloadType;
   BOOST_STATIC_ASSERT(( !PayloadType::isPolymorphic ));
@@ -577,7 +577,7 @@
 
 template <typename T>
 typename boost::enable_if_c<Internal::PayloadTrait<T>::isPolymorphic,bool>::type
-Item::hasPayloadImpl() const
+Item::hasPayloadImpl( const int * ) const
 {
   typedef Internal::PayloadTrait<T> PayloadType;
   BOOST_STATIC_ASSERT(( PayloadType::isPolymorphic ));
@@ -624,7 +624,7 @@
 
 template <typename T>
 typename boost::enable_if_c<Internal::PayloadTrait<T>::isPolymorphic>::type
-Item::setPayloadImpl( const T & p )
+Item::setPayloadImpl( const T & p, const int * )
 {
   typedef Internal::PayloadTrait<T> PayloadType;
   BOOST_STATIC_ASSERT(( PayloadType::isPolymorphic ));


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic