mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Refactoring
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@515 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
bef6367296
commit
10df4772ef
1 changed files with 2 additions and 3 deletions
|
|
@ -43,19 +43,18 @@ namespace detail
|
||||||
{
|
{
|
||||||
typedef T base_type;
|
typedef T base_type;
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
// if an error is generated by the line below it means
|
// if an error is generated by the line below it means
|
||||||
// the method is ambiguous : use MOCK_METHOD_EXT instead
|
// the method is ambiguous : use MOCK_METHOD_EXT instead
|
||||||
template< typename T >
|
template< typename T >
|
||||||
T& ambiguous_method_name_use_MOCK_METHOD_EXT_instead( const T& );
|
T& ambiguous_method_name_use_MOCK_METHOD_EXT_instead( const T& );
|
||||||
|
}
|
||||||
} // mock
|
} // mock
|
||||||
|
|
||||||
#define MOCK_SIGNATURE(M) \
|
#define MOCK_SIGNATURE(M) \
|
||||||
mock::detail::signature< \
|
mock::detail::signature< \
|
||||||
BOOST_TYPEOF( \
|
BOOST_TYPEOF( \
|
||||||
mock::ambiguous_method_name_use_MOCK_METHOD_EXT_instead( \
|
mock::detail::ambiguous_method_name_use_MOCK_METHOD_EXT_instead( \
|
||||||
&base_type::M ) ) \
|
&base_type::M ) ) \
|
||||||
>::type
|
>::type
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue