Commit 556cffa4 authored by Dominik Charousset's avatar Dominik Charousset

Add missing copy construction and assignment

parent 797132f7
......@@ -31,8 +31,12 @@ public:
ipv4_subnet();
ipv4_subnet(const ipv4_subnet&) = default;
ipv4_subnet(ipv4_address network_address, uint8_t prefix_length);
ipv4_subnet& operator=(const ipv4_subnet&) = default;
// -- properties -------------------------------------------------------------
/// Returns the network address for this subnet.
......
......@@ -40,12 +40,16 @@ public:
ipv6_subnet();
ipv6_subnet(const ipv6_subnet&) = default;
explicit ipv6_subnet(ipv4_subnet subnet);
ipv6_subnet(ipv4_address network_address, uint8_t prefix_length);
ipv6_subnet(ipv6_address network_address, uint8_t prefix_length);
ipv6_subnet& operator=(const ipv6_subnet&) = default;
// -- properties -------------------------------------------------------------
/// Returns whether this subnet embeds an IPv4 subnet.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment