Commit 785edce6 authored by Dominik Charousset's avatar Dominik Charousset

Return network_address as reference

parent 77288023
......@@ -40,7 +40,7 @@ public:
// -- properties -------------------------------------------------------------
/// Returns the network address for this subnet.
inline ipv4_address network_address() const noexcept {
inline const ipv4_address& network_address() const noexcept {
return address_;
}
......
......@@ -60,7 +60,7 @@ public:
ipv4_subnet embedded_v4() const noexcept;
/// Returns the network address for this subnet.
inline ipv6_address network_address() const noexcept {
inline const ipv6_address& network_address() const noexcept {
return address_;
}
......
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