Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDocumentation is lacking on PrintTo requirements #2611
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The structure of PrintTo requires users to make their custom overload of PrintTo be viewable from all the translation units where the custom type is printed using googletest.
See https://stackoverflow.com/a/36941270/4213607
This should be written explicitly in the documentation, I think in that section: https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#teaching-googletest-how-to-print-your-values