Commit ea5208eb authored by bdvd's avatar bdvd

moving Address::Address constructor instructions to the init list

parent 79fc9b84
...@@ -261,12 +261,9 @@ int AddressParser::family() const ...@@ -261,12 +261,9 @@ int AddressParser::family() const
return family_; return family_;
} }
Address::Address() Address::Address() :
{ ip_{}, port_{0}
port_ = Port(0); {}
ip_ = IP::any();
}
Address::Address(std::string host, Port port) Address::Address(std::string host, Port port)
{ {
......
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