mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Removed MOCK_METHOD_EXT from disambiguation helper
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@617 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
1de757ee5c
commit
1f767bc1a4
1 changed files with 4 additions and 3 deletions
|
|
@ -45,16 +45,17 @@ namespace detail
|
||||||
};
|
};
|
||||||
|
|
||||||
// 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 : specify its signature to
|
||||||
|
// disambiguate
|
||||||
template< typename T >
|
template< typename T >
|
||||||
T& ambiguous_method_name_use_MOCK_METHOD_EXT_instead( const T& );
|
T& ambiguous_method_requires_to_specify_signature( const T& );
|
||||||
}
|
}
|
||||||
} // mock
|
} // mock
|
||||||
|
|
||||||
#define MOCK_SIGNATURE(M) \
|
#define MOCK_SIGNATURE(M) \
|
||||||
mock::detail::signature< \
|
mock::detail::signature< \
|
||||||
BOOST_TYPEOF( \
|
BOOST_TYPEOF( \
|
||||||
mock::detail::ambiguous_method_name_use_MOCK_METHOD_EXT_instead( \
|
mock::detail::ambiguous_method_requires_to_specify_signature( \
|
||||||
&base_type::M ) ) \
|
&base_type::M ) ) \
|
||||||
>::type
|
>::type
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue