onqtam | 1da586c | 2016-05-09 19:18:38 +0300 | [diff] [blame^] | 1 | #include <vector>
|
| 2 | #include <ostream>
|
onqtam | 9cccba7 | 2016-05-09 18:34:14 +0300 | [diff] [blame] | 3 |
|
| 4 | struct myType
|
| 5 | { int a; };
|
| 6 |
|
| 7 | std::ostream& operator<<(std::ostream& stream, const myType&) {
|
onqtam | 1da586c | 2016-05-09 19:18:38 +0300 | [diff] [blame^] | 8 | stream << "dfgsdgfgfdsg";
|
onqtam | 9cccba7 | 2016-05-09 18:34:14 +0300 | [diff] [blame] | 9 | return stream;
|
| 10 | }
|
| 11 |
|
onqtam | 1da586c | 2016-05-09 19:18:38 +0300 | [diff] [blame^] | 12 | template<typename T>
|
| 13 | std::ostream& operator<<(std::ostream& stream, const std::vector<T>& in) {
|
| 14 | stream << "dfgsdgfgfdsg";
|
| 15 | return stream;
|
| 16 | }
|
| 17 |
|
| 18 | #include "in.h"
|
| 19 |
|
| 20 |
|
onqtam | 9cccba7 | 2016-05-09 18:34:14 +0300 | [diff] [blame] | 21 | #include <iostream>
|
| 22 |
|
| 23 | void f() {
|
onqtam | 1da586c | 2016-05-09 19:18:38 +0300 | [diff] [blame^] | 24 | myType a{5}; std::cout << stringify(a) << std::endl;
|
| 25 | std::cout << stringify(6) << std::endl;
|
| 26 | std::vector<int> v(5); std::cout << stringify(v) << std::endl;
|
onqtam | 9cccba7 | 2016-05-09 18:34:14 +0300 | [diff] [blame] | 27 | }
|