William A. Kennington III | 14dd4eb | 2023-01-12 10:51:12 -0800 | [diff] [blame] | 1 | #include <fmt/format.h> |
| 2 | |
| 3 | #include <stdplus/net/addr/subnet.hpp> |
| 4 | |
| 5 | #include <stdexcept> |
| 6 | |
| 7 | namespace stdplus::detail |
| 8 | { |
| 9 | |
| 10 | void invalidSubnetPfx(std::size_t pfx) |
| 11 | { |
| 12 | throw std::invalid_argument(fmt::format("Invalid subnet prefix {}", pfx)); |
| 13 | } |
| 14 | |
| 15 | template class Subnet46<In4Addr, uint8_t>; |
| 16 | template class Subnet46<In6Addr, uint8_t>; |
| 17 | |
William A. Kennington III | 160e382 | 2023-06-16 17:09:43 -0700 | [diff] [blame] | 18 | template Subnet4 SubnetFromStr<Subnet4>::operator()(std::string_view) const; |
| 19 | template Subnet6 SubnetFromStr<Subnet6>::operator()(std::string_view) const; |
| 20 | template SubnetAny SubnetFromStr<SubnetAny>::operator()(std::string_view) const; |
| 21 | |
William A. Kennington III | d5957f5 | 2023-06-16 16:55:01 -0700 | [diff] [blame] | 22 | template char* SubnetToStr<Subnet4>::operator()(char*, Subnet4) const noexcept; |
| 23 | template char* SubnetToStr<Subnet6>::operator()(char*, Subnet6) const noexcept; |
| 24 | template char* SubnetToStr<SubnetAny>::operator()(char*, |
| 25 | SubnetAny) const noexcept; |
| 26 | |
William A. Kennington III | 14dd4eb | 2023-01-12 10:51:12 -0800 | [diff] [blame] | 27 | } // namespace stdplus::detail |