Add '[[nodiscard]]' to 'IpAddress::resolve'

This commit is contained in:
Vittorio Romeo 2022-10-07 13:04:47 +02:00
parent 753644a5bd
commit 58b4346895

View File

@ -56,7 +56,7 @@ public:
/// \param address IP address or network name
///
////////////////////////////////////////////////////////////
static std::optional<IpAddress> resolve(std::string_view address);
[[nodiscard]] static std::optional<IpAddress> resolve(std::string_view address);
////////////////////////////////////////////////////////////
/// \brief Construct the address from 4 bytes