I'm trying to design a variadic template which takes a parameter pack (i.e, characters) and inserts these characters immediately into cout. I imagined that I can use a struct called for example PrintChars and do some sort of template recursion to reach every parameter in the parameter pack. I already succceeded to do this at runtime, but now I would like to do this at compile-time. I would like for example to have the following template call to print "foo" in the terminal.
cout << PrintChars<'f', 'o', 'o'>()
Do you have any ideas? Thanks.