LoginSignup
0
0

More than 5 years have passed since last update.

EclipseのパーサーがGMockのMatcher/MatcherInterfaceに関してエラーを履くとき

Last updated at Posted at 2016-03-03

Eclispeが

Invalid arguments '
Candidates are:
testing::Matcher<#0> MakeMatcher(const testing::MatcherInterface<#0> *)
' /test/gmock-1.7.0/include/gmock gmock-matchers.h 行 1351 Semantic Error

というようなSemantics Errorを履くときは
ヘッダの宣言を以下に変更すれば良い。

previous
inline Matcher<const hoge&> hogeEq(hoge expected)
changed
inline ::testing::Matcher<const hoge&> hogeEq(hoge expected)

ヘッダではusingキーワードを理解しないらしい。う~んバッドノウハウ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0