Skip to content
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

BOOST_DATA_TEST_CASE doesn't compile when a variable t is present #388

Open
circuitPolys opened this issue Jun 25, 2023 · 0 comments
Open

Comments

@circuitPolys
Copy link

circuitPolys commented Jun 25, 2023

For a minimal working example, consider the first BOOST_DATA_TEST_CASE example that appears in the "Operations on datasets" page of the documentation. This example will not compile if the variable var is renamed to t. It seems that only t is affected, because the example compiles fine if t is replaced by any other letter.

I have asked about this on StackOverflow where the user "sehe" identified what is causing the errors: there is a line test1case t; in the expansion of the macro which is creating a conflict.

@circuitPolys circuitPolys changed the title BOOST_DATA_TEST_CASE fails when a variable t is present BOOST_DATA_TEST_CASE doesn't compile when a variable t is present Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant