Fix for clang

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@683 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2013-08-13 21:43:37 +00:00
parent 616692f3e5
commit 8189ba27a8

View file

@ -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