Author: mcalmer Date: Sat May 12 18:15:31 2012 New Revision: 2759 URL: http://svn.opensuse.org/viewcvs/limal?rev=2759&view=rev Log: fix build with gcc4.7 Modified: limal-branches/mc-devel/limal-ca-mgm/src/ca-mgm/PtrTypes.hpp Modified: limal-branches/mc-devel/limal-ca-mgm/src/ca-mgm/PtrTypes.hpp URL: http://svn.opensuse.org/viewcvs/limal/limal-branches/mc-devel/limal-ca-mgm/src/ca-mgm/PtrTypes.hpp?rev=2759&r1=2758&r2=2759&view=diff ============================================================================== --- limal-branches/mc-devel/limal-ca-mgm/src/ca-mgm/PtrTypes.hpp (original) +++ limal-branches/mc-devel/limal-ca-mgm/src/ca-mgm/PtrTypes.hpp Sat May 12 18:15:31 2012 @@ -359,6 +359,16 @@ /////////////////////////////////////////////////////////////////// + /** \relates RWCOW_pointer Clone the underlying object. + * Calls \a rhs <tt>-\>clone()</tt>. Being defined as a + * function outside \ref RWCOW_pointer allows to overload + * it, in case a specific \a _D does not have <tt>clone()</tt>. + */ + template<class _D> + inline _D * rwcowClone( const _D * rhs ) + { return rhs->clone(); } + + /////////////////////////////////////////////////////////////////// // // CLASS NAME : RWCOW_pointer @@ -446,17 +456,6 @@ }; /////////////////////////////////////////////////////////////////// - /** \relates RWCOW_pointer Clone the underlying object. - * Calls \a rhs <tt>-\>clone()</tt>. Being defined as a - * function outside \ref RWCOW_pointer allows to overload - * it, in case a specific \a _D does not have <tt>clone()</tt>. - */ - template<class _D> - inline _D * rwcowClone( const _D * rhs ) - { return rhs->clone(); } - - /////////////////////////////////////////////////////////////////// - /** \relates RWCOW_pointer Stream output. * * Print the \c _D object the RWCOW_pointer refers, or \c "NULL" -- To unsubscribe, e-mail: limal-commit+unsubscribe@opensuse.org For additional commands, e-mail: limal-commit+help@opensuse.org