| 21 | // ---------------------------------------------------------------------------------------- |
| 22 | |
| 23 | network_address:: |
| 24 | network_address( |
| 25 | const std::string& full_address |
| 26 | ) |
| 27 | { |
| 28 | std::istringstream sin(full_address); |
| 29 | sin >> *this; |
| 30 | if (!sin || sin.peek() != EOF) |
| 31 | throw invalid_network_address("invalid network address: " + full_address); |
| 32 | } |
| 33 | |
| 34 | // ---------------------------------------------------------------------------------------- |
| 35 |
nothing calls this directly
no test coverage detected