| 69 | |
| 70 | template<class SyncWriteStream> |
| 71 | void write_string(SyncWriteStream& stream, string_view s) |
| 72 | { |
| 73 | static_assert(is_sync_write_stream<SyncWriteStream>::value, |
| 74 | "SyncWriteStream type requirements not met"); |
| 75 | net::write(stream, net::const_buffer(s.data(), s.size())); |
| 76 | } |
| 77 | |
| 78 | //] |
| 79 |