You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns: If successful, an address_v4 value corresponding to the string str. Otherwise address_v4().
What is the benefit for returning all zeros?
Why not just say something like "Otherwise, the return value is unspecified".
When I'm parsing these bits, if I get a failure, I have to either (1) zero the internal array, or (2) return a different value, which defeats some cases of RVO.
(Obviously, this is not specific to address_v4]
The text was updated successfully, but these errors were encountered:
[internet.address.v4.creation]/6 says (about
make_address_v4
):What is the benefit for returning all zeros?
Why not just say something like "Otherwise, the return value is unspecified".
When I'm parsing these bits, if I get a failure, I have to either (1) zero the internal array, or (2) return a different value, which defeats some cases of RVO.
(Obviously, this is not specific to
address_v4
]The text was updated successfully, but these errors were encountered: