I am trying to Google mock a virtual method which has a throw() specifier. The original function looks like this:
virtual ReturnValue FunctionName() const throw();
I am getting the compiler error: looser throw specifier for 'virtual FunctionSignature'
Here is the code I have tried thus far:
MOCK_CONST_METHOD0( FunctionName, ReturnValue() );
MOCK_CONST_METHOD0( FunctionName, ReturnValue() throw() );
MOCK_CONST_METHOD0( FunctionName, ReturnValue() ) throw(); // Gives a different error entirely.
I've tried just about every other combination I can think of, but these are the ones which seem most logical. How do I go about Google mocking a method with a throw() specifier?