From 30c59644b60555b6c0b2ebd001e39c2f4ddaff94 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 11 Jun 2018 13:57:37 +0200 Subject: [PATCH] minor changes --- src/entt/entity/registry.hpp | 16 ++++++++-------- src/entt/signal/sigh.hpp | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index 5fa7fdd13..a8eda5f81 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -57,7 +57,7 @@ class Registry { } struct Attachee { - Attachee(const Entity entity): entity{entity} {} + Attachee(const Entity entity) ENTT_NOEXCEPT: entity{entity} {} virtual ~Attachee() = default; Entity entity; }; @@ -842,7 +842,7 @@ public: * @return A valid entity identifier. */ template - entity_type move(const entity_type entity) { + entity_type move(const entity_type entity) ENTT_NOEXCEPT { assert(valid(entity)); assert(has()); auto &tag = std::get<0>(tags[tag_family::type()]); @@ -929,7 +929,7 @@ public: * @return A temporary sink object. */ template - sink_type construction(tag_t) { + sink_type construction(tag_t) ENTT_NOEXCEPT { assure(tag_t{}); return std::get<1>(tags[tag_family::type()]).sink(); } @@ -958,7 +958,7 @@ public: * @return A temporary sink object. */ template - sink_type construction() { + sink_type construction() ENTT_NOEXCEPT { assure(); return std::get<1>(pools[component_family::type()]).sink(); } @@ -987,7 +987,7 @@ public: * @return A temporary sink object. */ template - sink_type destruction(tag_t) { + sink_type destruction(tag_t) ENTT_NOEXCEPT { assure(tag_t{}); return std::get<2>(tags[tag_family::type()]).sink(); } @@ -1016,7 +1016,7 @@ public: * @return A temporary sink object. */ template - sink_type destruction() { + sink_type destruction() ENTT_NOEXCEPT { assure(); return std::get<2>(pools[component_family::type()]).sink(); } @@ -1467,7 +1467,7 @@ public: * * @return A temporary object to use to take snasphosts. */ - Snapshot snapshot() const { + Snapshot snapshot() const ENTT_NOEXCEPT { using follow_fn_type = entity_type(*)(const Registry &, const entity_type); const entity_type seed = available ? (next | (entities[next] & ~traits_type::entity_mask)) : next; @@ -1496,7 +1496,7 @@ public: * * @return A temporary object to use to load snasphosts. */ - SnapshotLoader restore() { + SnapshotLoader restore() ENTT_NOEXCEPT { using assure_fn_type = void(*)(Registry &, const entity_type, const bool); assure_fn_type assure = [](Registry ®istry, const entity_type entity, const bool destroyed) { diff --git a/src/entt/signal/sigh.hpp b/src/entt/signal/sigh.hpp index 5e0049f1c..259b3d318 100644 --- a/src/entt/signal/sigh.hpp +++ b/src/entt/signal/sigh.hpp @@ -145,7 +145,7 @@ class Sink final { return (static_cast(instance)->*Member)(args...); } - Sink(std::vector &calls) + Sink(std::vector &calls) ENTT_NOEXCEPT : calls{calls} {} @@ -295,7 +295,7 @@ public: * * @return A temporary sink object. */ - sink_type sink() { + sink_type sink() ENTT_NOEXCEPT { return { calls }; }