minor changes: noexcept-ness review (close #372)

This commit is contained in:
Michele Caini
2019-12-15 14:35:39 +01:00
parent f8b8c91fe8
commit d4d2db228e
2 changed files with 4 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ public:
* @return A temporary sink object.
*/
template<typename Event>
auto sink() ENTT_NOEXCEPT {
auto sink() {
return assure<Event>().sink();
}
@@ -187,7 +187,7 @@ public:
* @tparam Event Type of events to discard.
*/
template<typename... Event>
void discard() ENTT_NOEXCEPT {
void discard() {
if constexpr(sizeof...(Event) == 0) {
std::for_each(pools.begin(), pools.end(), [](auto &&cpool) {
cpool->clear();

View File

@@ -275,7 +275,7 @@ public:
* @tparam Event Type of event to reset.
*/
template<typename Event>
void clear() ENTT_NOEXCEPT {
void clear() {
assure<Event>().clear();
}
@@ -297,7 +297,7 @@ public:
* @return True if there are no listeners registered, false otherwise.
*/
template<typename Event>
bool empty() const ENTT_NOEXCEPT {
bool empty() const {
return assure<Event>().empty();
}