mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Remove support for BOOST_IDENTITY_TYPE
MOCK_PROTECT_FUNCTION_SIG should be used instead which even requires less parentheses. Closes #109
This commit is contained in:
parent
c910d1db8c
commit
3d5ac2b94a
4 changed files with 38 additions and 41 deletions
|
|
@ -229,15 +229,9 @@ MOCK_CLASS(mock_class)
|
|||
MOCK_METHOD(method, 0, MOCK_PROTECT_FUNCTION_SIG(std::map<int, int>()))
|
||||
};
|
||||
//]
|
||||
MOCK_CLASS(legacy_mock_class)
|
||||
{
|
||||
MOCK_METHOD(method, 0, BOOST_IDENTITY_TYPE((std::map<int, int>())))
|
||||
};
|
||||
|
||||
static_assert(std::is_same<decltype(std::declval<mock_class>().method()), std::map<int, int>>::value,
|
||||
"Wrong return value");
|
||||
static_assert(std::is_same<decltype(std::declval<legacy_mock_class>().method()), std::map<int, int>>::value,
|
||||
"Wrong return value");
|
||||
|
||||
} // namespace member_function_example_8
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue