What is the meaning of this 'error: ‘send’ is not a type' in declaring mocks
What is the meaning of this 'error: ‘send’ is not a type' in declaring mocks
我正在尝试模仿 zmq.hpp
。
namespace zmq {
class ZmqMockSocket : public socket_t {
MOCK_METHOD((size_t), send, (), (override));
};
我收到以下错误:
zmq_mock.h:16:25: error: ‘send’ is not a type
MOCK_METHOD((size_t), send, (), (override);
^~~~
send
被定义为 class socket_t
为:
virtual size_t send (void) = 0;
我正在尝试模仿 zmq.hpp
。
namespace zmq {
class ZmqMockSocket : public socket_t {
MOCK_METHOD((size_t), send, (), (override));
};
我收到以下错误:
zmq_mock.h:16:25: error: ‘send’ is not a type
MOCK_METHOD((size_t), send, (), (override);
^~~~
send
被定义为 class socket_t
为:
virtual size_t send (void) = 0;