Updated example to use BOOST_IDENTITY_TYPE

This commit is contained in:
Mathieu Champlon 2016-07-17 23:22:52 +02:00
parent 1fa9bc1288
commit 3a8c3b5d56

View file

@ -234,7 +234,7 @@ namespace member_function_example_8
//[ member_function_example_8 //[ member_function_example_8
MOCK_CLASS( mock_class ) 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
}; };
//] //]
} }