cpp_weekly
cpp_weekly copied to clipboard
What is a template template parameter?
See: https://compiler-explorer.com/z/sh45aaj98
example from video: https://compiler-explorer.com/z/nncG6EaqW
Coming in Ep368
example from video: https://compiler-explorer.com/z/nncG6EaqW
For those who wants to use Clang to play with the example, actually the syntax must be
template <typename...> typename
Clang refused to support your usage by default (-frelaxed-template-template-args enables it).
Here's the Clang's version link with the compiler flag: https://compiler-explorer.com/z/TbP193834 Here's the actual working syntax without enabling the compiler flag, in the major three: https://compiler-explorer.com/z/c5fnW83sE