From 3a8c3b5d56db253b8f40017cd4125a04c318cd95 Mon Sep 17 00:00:00 2001 From: Mathieu Champlon Date: Sun, 17 Jul 2016 23:22:52 +0200 Subject: [PATCH] Updated example to use BOOST_IDENTITY_TYPE --- doc/example/reference.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/example/reference.cpp b/doc/example/reference.cpp index 29de8ad..42cec9d 100644 --- a/doc/example/reference.cpp +++ b/doc/example/reference.cpp @@ -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 }; //] }