We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the documentation about FieldsAre wrote:
struct MyStruct { int value = 42; std::string greeting = "aloha"; }; MyStruct s; EXPECT_THAT(s, FieldsAre(42, "aloha"));
however, when I run this:
struct MyStruct { int value = 42; std::string greeting = "aloha"; }; TEST(MyTestSuite, FieldsAreMatcherTest) { MyStruct s; EXPECT_THAT(s, FieldsAre(42, "aloha")); }
g++ cannot compile: note: types 'std::pair<_Tp1, _Tp2>' and 'const MyStruct' have incompatible cv-qualifiers
wrote the above code and run googletest
1.15.2
windows10
gcc (tdm64-1) 9.2.0
cmake version 3.22.2
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the issue
the documentation about FieldsAre wrote:
however, when I run this:
g++ cannot compile:
note: types 'std::pair<_Tp1, _Tp2>' and 'const MyStruct' have incompatible cv-qualifiers
Steps to reproduce the problem
wrote the above code and run googletest
What version of GoogleTest are you using?
1.15.2
What operating system and version are you using?
windows10
What compiler and version are you using?
gcc (tdm64-1) 9.2.0
What build system are you using?
cmake version 3.22.2
Additional context
No response
The text was updated successfully, but these errors were encountered: