#include <iostream>
#include <sstream>

int item = 42;
struct TypeWithoutLeftShift { int n; } item2;

namespace operators_fallback
{
    template <typename T>
    inline std::stringstream& operator<<(std::stringstream& s, const T &) { s.write("24", 2); return s; }
};

template <typename T>
inline std::string toString(const T& t)
{
    using namespace operators_fallback;
    std::stringstream s;
    s << t;
    return s.str();
}

int main( void )
{
    std::cout << toString( item ) << std::endl;
    std::cout << toString( item2 ) << std::endl;
    
    return 0;
}