Browse Source

added noexcept specifier

Michele Caini 6 years ago
parent
commit
35a7008444
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/entt/entity/registry.hpp

+ 2 - 2
src/entt/entity/registry.hpp

@@ -200,7 +200,7 @@ class basic_registry {
     struct group_data {
     struct group_data {
         const std::size_t extent[3];
         const std::size_t extent[3];
         std::unique_ptr<void, void(*)(void *)> group;
         std::unique_ptr<void, void(*)(void *)> group;
-        bool(* const is_same)(const component *);
+        bool(* const is_same)(const component *) ENTT_NOEXCEPT;
     };
     };
 
 
     struct ctx_variable {
     struct ctx_variable {
@@ -1361,7 +1361,7 @@ public:
             groups.push_back(group_data{
             groups.push_back(group_data{
                 { sizeof...(Owned), sizeof...(Get), sizeof...(Exclude) },
                 { sizeof...(Owned), sizeof...(Get), sizeof...(Exclude) },
                 decltype(group_data::group){new handler_type{}, [](void *gptr) { delete static_cast<handler_type *>(gptr); }},
                 decltype(group_data::group){new handler_type{}, [](void *gptr) { delete static_cast<handler_type *>(gptr); }},
-                [](const component *other) {
+                [](const component *other) ENTT_NOEXCEPT {
                     const component ctypes[] = { type<Owned>()..., type<Get>()..., type<Exclude>()... };
                     const component ctypes[] = { type<Owned>()..., type<Get>()..., type<Exclude>()... };
                     return std::equal(std::begin(ctypes), std::end(ctypes), other);
                     return std::equal(std::begin(ctypes), std::end(ctypes), other);
                 }
                 }