I'm trying to define some variadic template like that:
typedef const char CCTYPE[];
template<CCTYPE X, CCTYPE... P> struct StringConcat { ... };
so that I could write sth like:
char foo[] = "foo"; char bar[] = "bar";
std::cout << StringConcat<foo, bar>;
and it printed foobar
.
How can I do this, if it's possible in C++0x?
my real interest is to solve FizzBuzz problem using c++ templates, I found a solution here to convert an int to char[] using templates.