The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#define SASS_TO_STRING

#include <string>

#ifndef SASS_OPERATION
#include "operation.hpp"
#endif

namespace Sass {
  using namespace std;

  class Context;

  class To_String : public Operation_CRTP<string, To_String> {
    // import all the class-specific methods and override as desired
    using Operation<string>::operator();
    // override this to define a catch-all
    string fallback_impl(AST_Node* n);

    Context* ctx;

  public:
    To_String(Context* ctx = 0);
    virtual ~To_String();

    template <typename U>
    string fallback(U n) { return fallback_impl(n); }
  };
}