blob: 47f028f45cb3715ab2fd0182ab6e2fc62ec0ea17 [file] [log] [blame]
#include <fmt/format.h>
#include <stdplus/net/addr/subnet.hpp>
#include <stdexcept>
namespace stdplus::detail
{
void invalidSubnetPfx(std::size_t pfx)
{
throw std::invalid_argument(fmt::format("Invalid subnet prefix {}", pfx));
}
template class Subnet46<In4Addr, uint8_t>;
template class Subnet46<In6Addr, uint8_t>;
template Subnet4 SubnetFromStr<Subnet4>::operator()(std::string_view) const;
template Subnet6 SubnetFromStr<Subnet6>::operator()(std::string_view) const;
template SubnetAny SubnetFromStr<SubnetAny>::operator()(std::string_view) const;
template char* SubnetToStr<Subnet4>::operator()(char*, Subnet4) const noexcept;
template char* SubnetToStr<Subnet6>::operator()(char*, Subnet6) const noexcept;
template char* SubnetToStr<SubnetAny>::operator()(char*,
SubnetAny) const noexcept;
} // namespace stdplus::detail