-
-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
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
Can I inherit ConsoleReporter? #344
Comments
Well first the console reporter class is in the |
Indeed it works in the main translation unit, but I did not find it in the "detail" namespace but in the "doctest" namespace. Here is a main program that works for me:
|
Glad that it worked! The class is actually in the detail namespace but that namespace gets used in an anonymous namespace inside of the doctest namespace and that's why you find it in I'm closing this as the issue seems resolved :) |
Description
I tried to write a new reporter by inheriting ConsoleReporter and modifying some functions. I wrote this in a new file:
But the compiler gave me an error "expected class name", as if it does not recognize ConsoleReporter. What am I doing wrong?
Extra information
The text was updated successfully, but these errors were encountered: