Сustom formatter stops working when migrating from version 1.8.1 to 1.12.1 #3968
Unanswered
kdator
asked this question in
Community Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I had some problems migrating from version 1.8.1 to 1.12.1.
The fact is that I have my custom macro for comparing entities with each other. Inside it, I used the macro
EXPECT_PRED_FORMAT#(arg1...argN)
, where I passed a personal comparator and arguments as parameters. For my macro to work successfully, I needed to create my own .h is the file where I included thegtest/gtest_pred_impl.h
file and implemented its behavior there. With migration to version 1.12.1 (I haven't tried other release versions) my project stopped assembling, giving me a compilation error, which can be seen below:Console output
My custom comparator looks like this:
However, connecting the "core" library file ("gtest/gtest.h") now solves this problem. Is this part of the library design that requires the user to explicitly connect the main library file, even in places where it is not particularly necessary, or have I encountered a bug?
Thanks!
Dmitrii.
Beta Was this translation helpful? Give feedback.
All reactions