sinojelly / mockcpp

Two C/C++ testing tools, mockcpp and testngpp.
Apache License 2.0
67 stars 42 forks source link

compile error #2

Closed GoogleCodeExporter closed 3 years ago

GoogleCodeExporter commented 9 years ago
class mock_appframe : public mockcpp::ChainableMockObject

mock_appframe* mock_appframe::Alloc(int iDataSize)
{
    return invoke<mock_appframe*>("Alloc")(iDataSize);
}

error: cannot call member function `mockcpp::ChainableMockMethod<RT> 
mockcpp::ChainableMockObject::invoke(const std::string&) const [with RT = 
mock_appframe*]' without object

Original issue reported on code.google.com by liweihai...@gmail.com on 23 May 2009 at 2:38

GoogleCodeExporter commented 9 years ago
I see. Method invoke can't be used in static method. How can i do?

Original comment by liweihai...@gmail.com on 23 May 2009 at 2:46

sinojelly commented 3 years ago

请用新版本尝试。