From 8189ba27a86553a3fbc3e8d500a49594a8c30d08 Mon Sep 17 00:00:00 2001 From: mat007 Date: Tue, 13 Aug 2013 21:43:37 +0000 Subject: [PATCH] Fix for clang git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@683 860be788-9bd5-4423-9f1e-828f051e677b --- turtle/object.hpp | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/turtle/object.hpp b/turtle/object.hpp index 4df21fb..5e2684d 100644 --- a/turtle/object.hpp +++ b/turtle/object.hpp @@ -60,14 +60,23 @@ namespace detail friend E& detail::configure( const object& o, E& e, boost::unit_test::const_string instance, boost::optional< detail::type_name > type, - boost::unit_test::const_string name ) - { - e.configure( *o.impl_, o.impl_.get(), instance, type, name ); - return e; - } + boost::unit_test::const_string name ); private: boost::shared_ptr< detail::object_impl > impl_; }; + +namespace detail +{ + template< typename E > + E& configure( const object& o, E& e, + boost::unit_test::const_string instance, + boost::optional< type_name > type, + boost::unit_test::const_string name ) + { + e.configure( *o.impl_, o.impl_.get(), instance, type, name ); + return e; + } +} } // mock #endif // MOCK_OBJECT_HPP_INCLUDED