I\'m trying to define some variadic template like that:
typedef const char CCTYPE[];
template struct StringConcat { ... };
#include
#include
#include
#include
using namespace boost;
template < typename Str1, typename Str2 >
struct concat : mpl::insert_range::type, Str2> {};
int main()
{
typedef mpl::string<'hell', 'o'> str1;
typedef mpl::string<' wor', 'ld!'> str2;
typedef concat::type str;
std::cout << mpl::c_str::value << std::endl;
std::cin.get();
}
Using that construct you should be able to implement your FizzBuzz in pure metaprogramming. Nice exercise BTW.