language: C++ 4.7.2 (gcc-4.7.2)
date: 707 days 13 hours ago
link:
visibility: private
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <string>
#include <ostream>
#include <iostream>
 
template <typename T>
struct Streamable {};
 
typedef Streamable<char> SC;
 
struct Name {
   operator SC() { return SC(); }
};
 
std::ostream& operator<<(std::ostream& os, SC const&) {
   return (os << "!");
}
 
int main() {
   Name n;
   std::cout << n;
}