mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Removed dead code
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@403 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
d3084ecc2d
commit
1b7943865b
1 changed files with 0 additions and 34 deletions
|
|
@ -33,40 +33,6 @@ namespace mock
|
||||||
{
|
{
|
||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
template< typename T >
|
|
||||||
T& deref( T& t )
|
|
||||||
{
|
|
||||||
return t;
|
|
||||||
}
|
|
||||||
template< typename T >
|
|
||||||
T& deref( T* t )
|
|
||||||
{
|
|
||||||
if( ! t )
|
|
||||||
throw std::invalid_argument( "derefencing null pointer" );
|
|
||||||
return *t;
|
|
||||||
}
|
|
||||||
template< typename T >
|
|
||||||
T& deref( std::auto_ptr< T >& t )
|
|
||||||
{
|
|
||||||
if( ! t.get() )
|
|
||||||
throw std::invalid_argument( "derefencing null pointer" );
|
|
||||||
return *t;
|
|
||||||
}
|
|
||||||
template< typename T >
|
|
||||||
T& deref( const std::auto_ptr< T >& t )
|
|
||||||
{
|
|
||||||
if( ! t.get() )
|
|
||||||
throw std::invalid_argument( "derefencing null pointer" );
|
|
||||||
return *t;
|
|
||||||
}
|
|
||||||
template< typename T >
|
|
||||||
T& deref( boost::shared_ptr< T > t )
|
|
||||||
{
|
|
||||||
if( ! t.get() )
|
|
||||||
throw std::invalid_argument( "derefencing null pointer" );
|
|
||||||
return *t;
|
|
||||||
}
|
|
||||||
|
|
||||||
template< typename M >
|
template< typename M >
|
||||||
struct signature :
|
struct signature :
|
||||||
boost::function_types::function_type<
|
boost::function_types::function_type<
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue