gcc
C++ ASCII literals
Submitted by bwy on Wed, 28.04.2010 - 16:58I didn't invent it! But as I can't find the original code, here is my own version. The idea was most likely inspired by the somewhat cleverer, but no more useful analogue literals.
Create your own ASCII art, drawing it directly in the source code. Can you think of anything more beautiful?!
#include <iostream>
#include <string>
#include <algorithm>
#include <iterator>
struct AsciiLiteral
{
AsciiLiteral() : n(false) {}