mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Updated example to use BOOST_IDENTITY_TYPE
This commit is contained in:
parent
1fa9bc1288
commit
3a8c3b5d56
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ namespace member_function_example_8
|
|||
//[ member_function_example_8
|
||||
MOCK_CLASS( mock_class )
|
||||
{
|
||||
MOCK_METHOD( method, 0, (std::map< int, int >()) ) // the signature must be surrounded with round parenthesis if the return type contains a comma
|
||||
MOCK_METHOD( method, 0, BOOST_IDENTITY_TYPE((std::map< int, int >())) ) // the signature must be wrapped in [@http://www.boost.org/libs/utility/identity_type/doc/html/index.html BOOST_IDENTITY_TYPE] if the return type contains a comma
|
||||
};
|
||||
//]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue