mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
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:
parent
616692f3e5
commit
8189ba27a8
1 changed files with 14 additions and 5 deletions
|
|
@ -60,14 +60,23 @@ namespace detail
|
||||||
friend E& detail::configure( const object& o, E& e,
|
friend E& detail::configure( const object& o, E& e,
|
||||||
boost::unit_test::const_string instance,
|
boost::unit_test::const_string instance,
|
||||||
boost::optional< detail::type_name > type,
|
boost::optional< detail::type_name > type,
|
||||||
boost::unit_test::const_string name )
|
boost::unit_test::const_string name );
|
||||||
{
|
|
||||||
e.configure( *o.impl_, o.impl_.get(), instance, type, name );
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
private:
|
private:
|
||||||
boost::shared_ptr< detail::object_impl > impl_;
|
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
|
} // mock
|
||||||
|
|
||||||
#endif // MOCK_OBJECT_HPP_INCLUDED
|
#endif // MOCK_OBJECT_HPP_INCLUDED
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue