cpp_weekly icon indicating copy to clipboard operation
cpp_weekly copied to clipboard

What is a template template parameter?

Open lefticus opened this issue 3 years ago • 1 comments

lefticus avatar Jun 27 '22 23:06 lefticus

See: https://compiler-explorer.com/z/sh45aaj98

lefticus avatar Jun 27 '22 23:06 lefticus

example from video: https://compiler-explorer.com/z/nncG6EaqW

lefticus avatar Jan 16 '23 19:01 lefticus

Coming in Ep368

lefticus avatar Mar 08 '23 01:03 lefticus

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

TheRustifyer avatar Mar 21 '23 11:03 TheRustifyer