explicit also in MacAddr

This commit is contained in:
Erik Frojdh
2020-01-16 16:57:04 +01:00
parent c1fac7cdb7
commit 6170c42618
3 changed files with 7 additions and 7 deletions

View File

@ -40,8 +40,8 @@ class MacAddr {
public:
constexpr MacAddr() noexcept = default;
explicit constexpr MacAddr(uint64_t mac) noexcept : addr_{mac} {}
MacAddr(std::string mac);
MacAddr(const char *address);
explicit MacAddr(std::string mac);
explicit MacAddr(const char *address);
std::string str() const;
std::string hex() const;
constexpr bool operator==(const MacAddr &other) const noexcept {