Skip to content

Commit

Permalink
Fix noexcept(noexcept(func))
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirShaleev committed Jun 1, 2024
1 parent 81a0448 commit 5e6ef0c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions include/ipaddress/unicode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ struct char_or_throw {
return result;
}

static IPADDRESS_CONSTEXPR IPADDRESS_FORCE_INLINE void has_throw() IPADDRESS_NOEXCEPT_WHEN_NO_EXCEPTIONS {
}
static IPADDRESS_CONSTEXPR IPADDRESS_FORCE_INLINE void has_throw() IPADDRESS_NOEXCEPT_WHEN_NO_EXCEPTIONS
#ifdef IPADDRESS_MODULE
{ }
#else
;
#endif
};

struct symbol {
Expand Down Expand Up @@ -205,8 +209,12 @@ struct char_reader<char>
return *it++;
}

static IPADDRESS_CONSTEXPR IPADDRESS_FORCE_INLINE void has_throw() IPADDRESS_NOEXCEPT {
}
static IPADDRESS_CONSTEXPR IPADDRESS_FORCE_INLINE void has_throw() IPADDRESS_NOEXCEPT
#ifdef IPADDRESS_MODULE
{ }
#else
;
#endif

#endif // !IPADDRESS_CHAR_IS_UTF8
};
Expand Down

0 comments on commit 5e6ef0c

Please sign in to comment.