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

TEMPLATE_TEST_CASE does not support template templates #1454

Closed
ghost opened this issue Nov 22, 2018 · 2 comments · Fixed by #1468
Closed

TEMPLATE_TEST_CASE does not support template templates #1454

ghost opened this issue Nov 22, 2018 · 2 comments · Fixed by #1468

Comments

@ghost
Copy link

ghost commented Nov 22, 2018

Description

TEMPLATE_TEST_CASE only supports substitution of simple types, and not template templates.

Steps to reproduce

template <template <typename> typename T>
struct Foo { };

TEMPLATE_TEST_CASE("instantiate a template template with int", "", Foo) {
     using T = TestType<int>;  // ... or something
}
@JoeyGrajciar
Copy link
Contributor

JoeyGrajciar commented Nov 25, 2018

@porpoises in your example you probably wanted to do

template<typename T>
struct Foo {};

in linked PR #1457 i added support for this kind of types. For this kind of tests you will have to use
TEMPLATE_TEMPLATE_TEST_CASE.

@ghost
Copy link
Author

ghost commented Nov 29, 2018

Awesome, thanks!

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

Successfully merging a pull request may close this issue.

1 participant