| 161 | // ---------------------------------------------------------------------------------------- |
| 162 | |
| 163 | void test1() |
| 164 | { |
| 165 | print_spinner(); |
| 166 | |
| 167 | { |
| 168 | std::vector<char> buf; |
| 169 | vectorstream s1(buf); |
| 170 | test1_variant(buf, s1); |
| 171 | } |
| 172 | |
| 173 | { |
| 174 | vector<char> buf; |
| 175 | dlib::vectorstream s1(buf); |
| 176 | std::iostream& s2 = s1; |
| 177 | test1_variant(buf, s2); |
| 178 | } |
| 179 | |
| 180 | { |
| 181 | std::vector<int8_t> buf; |
| 182 | vectorstream s1(buf); |
| 183 | test1_variant(buf, s1); |
| 184 | } |
| 185 | |
| 186 | { |
| 187 | vector<int8_t> buf; |
| 188 | dlib::vectorstream s1(buf); |
| 189 | std::iostream& s2 = s1; |
| 190 | test1_variant(buf, s2); |
| 191 | } |
| 192 | |
| 193 | { |
| 194 | std::vector<uint8_t> buf; |
| 195 | vectorstream s1(buf); |
| 196 | test1_variant(buf, s1); |
| 197 | } |
| 198 | |
| 199 | { |
| 200 | vector<uint8_t> buf; |
| 201 | dlib::vectorstream s1(buf); |
| 202 | std::iostream& s2 = s1; |
| 203 | test1_variant(buf, s2); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | // ---------------------------------------------------------------------------------------- |
| 208 |
no test coverage detected