comma in return type of a mock method

57 views
Skip to first unread message

Puya Daravi

unread,
Jun 25, 2019, 8:33:38 PM6/25/19
to Google C++ Testing Framework
Hello I am returning a std::pair in my mock method. How do I "protect" the comma as the documentation implies?

"//This compiles fine.
MOCK_METHOD1(GetSize, int(const map<int, std::string>& m));

You still need a typedef if the return type contains an unprotected comma, but that's much rarer."

Cheers,
Puya

Reply all
Reply to author
Forward
0 new messages