Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It seems to be a problem with your class template static member declaration and definition (StackOverflow). Keywords for googling: "c++ class template undefined reference to static member".
Short answer: static data members must be declared and defined (until C++17, which introduces "inline constexpr static members", see reference).
This comment is hidden because it contains spoiler information about the solution
Oh, indeed, my bad, forgot uncheck default. Thanks!
This comment is hidden because it contains spoiler information about the solution
My bad, I see your solutions, I'll duplicate test cases. Thanks!
I'm not sure about CW testing policy in case of "failed compilation === failed test". Moreover, solution should be a class template, not
constexpr
function, so it's impossible to instantiate incomplete template while testing.But yes, I agree all test can be (and should be) replaced with
static_assert
's. Or should they be duplicated (to provide more clear output)?