-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
anonymous namespace issue #576
Comments
#define CATCH_INTERNAL_LINEINFO ::Catch::SourceLineInfo( FILE, static_caststd::size_t( LINE ) ) |
The unique name don't have to use line number, otherwise when including other files you'll get this error |
If possible (the compiler supports it), we now use |
hi mate, |
@amigo421 It should be fixed, but testing is always welcome. |
Any feedback would be welcome. However please note that it does depend on whether we detect compiler support for |
if you treat this as solved, I won't test this right now , just will report this in case Iwill have faced with this again (i'm mostly using vc++ which supports p.s. congrats-glad to see that you now work with jetbrains |
(not sure that is a problem of the lib).
I was writing an own project with a lot of headers (with logic) and added TEST_CASEs into each one. and was debugging/testing these ones individually. But after merging all headers into one project I faced with a number of similar issue which refer to TEST_CASE declaration in various modules in my project
(just for sure, my code works as designed and removing a part of TEST_CASEs solve the problem ), I'm also confirming that all TEST_CASEs compiled and work correctly in case of including into the project without other headers (looks like a conflict). the errors looks like these ones:
The text was updated successfully, but these errors were encountered: