1 2 3 4 5 6 7 8 9
#include <iostream> template <int i> void printText(const char (&text)[i]) { std::cout << text; } int main() { printText("some string constant"); return 0; }