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

C++17 constexpr if #1084

Closed
guwirth opened this issue Mar 9, 2017 · 1 comment · Fixed by #1130
Closed

C++17 constexpr if #1084

guwirth opened this issue Mar 9, 2017 · 1 comment · Fixed by #1130
Assignees
Milestone

Comments

@guwirth
Copy link
Collaborator

guwirth commented Mar 9, 2017

Support C++ constexpr if.

Sample:

template <typename T, typename... Types>
void print (const T& firstArg, const Types&... args)
{
  std::cout << firstArg << std::endl;
  if constexpr(sizeof...(args) > 0) {
    print(args...);
  }
}
@guwirth guwirth added this to the 0.9.8 milestone Mar 13, 2017
@guwirth guwirth self-assigned this May 7, 2017
@guwirth
Copy link
Collaborator Author

guwirth commented May 23, 2017

related to #1104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant