onqtam | 9cccba7 | 2016-05-09 18:34:14 +0300 | [diff] [blame^] | 1 | #include "in.h" |
2 | |||||
3 | struct myType | ||||
4 | { int a; }; | ||||
5 | |||||
6 | std::ostream& operator<<(std::ostream& stream, const myType&) { | ||||
7 | stream << "omgomgomg"; | ||||
8 | return stream; | ||||
9 | } | ||||
10 | |||||
11 | #include <iostream> | ||||
12 | |||||
13 | void f() { | ||||
14 | myType a{5}; | ||||
15 | std::cout << stringify(a) << std::endl; | ||||
16 | //std::cout << stringify(int(6)) << std::endl; | ||||
17 | } |