X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fcore%2Futil%2Fdefines.hpp;fp=include%2Fanna%2Fcore%2Futil%2Fdefines.hpp;h=cd846a3d0d6131a0470448043a1254c2bce22b0c;hp=25a7e03b94dec99b9518e6586f4fd1ce0818e068;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/core/util/defines.hpp b/include/anna/core/util/defines.hpp index 25a7e03..cd846a3 100644 --- a/include/anna/core/util/defines.hpp +++ b/include/anna/core/util/defines.hpp @@ -421,7 +421,7 @@ typedef struct { * @param v Version type * @return Version description */ - static const char* asText(const _v v) throw() { // anna_declare_enum is not safe, because labels don't have to match a sequence + static const char* asText(const _v v) { // anna_declare_enum is not safe, because labels don't have to match a sequence if(v == IPv4) return "IPv4"; if(v == IPv6) return "IPv6"; @@ -447,29 +447,29 @@ typedef struct { /** Gets the address version */ - const U16 & getVersion() const throw() { return Version; } + const U16 & getVersion() const { return Version; } /** Gets the address printable value */ - const char * getValue() const throw() { return Value.c_str(); } + const char * getValue() const { return Value.c_str(); } // Helpers /** Return true when is an IPv4 address */ - bool isIPv4() const throw() { return ((iana_address_version_t::_v)Version == iana_address_version_t::IPv4); } + bool isIPv4() const { return ((iana_address_version_t::_v)Version == iana_address_version_t::IPv4); } /** Return true when is an IPv6 address */ - bool isIPv6() const throw() { return ((iana_address_version_t::_v)Version == iana_address_version_t::IPv6); } + bool isIPv6() const { return ((iana_address_version_t::_v)Version == iana_address_version_t::IPv6); } /** Return true when is an E164 (SMDS, Frame Relay, ATM) address */ - bool isE164() const throw() { return ((iana_address_version_t::_v)Version == iana_address_version_t::E164); } + bool isE164() const { return ((iana_address_version_t::_v)Version == iana_address_version_t::E164); } /** Sets version for IPv4 address and address itself. Checking is not performed (could assign IPv6 instead ...) */ - void setIPv4(const char *value) throw() { Version = iana_address_version_t::IPv4; Value = value ? value : ""; } + void setIPv4(const char *value) { Version = iana_address_version_t::IPv4; Value = value ? value : ""; } /** Sets version for IPv6 address and address itself. Checking is not performed (could assign IPv4 instead ...) */ - void setIPv6(const char *value) throw() { Version = iana_address_version_t::IPv6; Value = value ? value : ""; } + void setIPv6(const char *value) { Version = iana_address_version_t::IPv6; Value = value ? value : ""; } /** Sets version for E164 address and address itself. Checking is not performed ... */ - void setE164(const char *value) throw() { Version = iana_address_version_t::E164; Value = value ? value : ""; } + void setE164(const char *value) { Version = iana_address_version_t::E164; Value = value ? value : ""; } /** @@ -477,7 +477,7 @@ typedef struct { * * @return String with class content */ - std::string asString() const throw() { + std::string asString() const { std::string result; result += Value.c_str(); // assume that all IANA addresses have a printable representation result += " (";