Explorar el Código

minor changes

Michele Caini hace 6 años
padre
commit
643a20fec3
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      src/entt/core/utility.hpp

+ 5 - 2
src/entt/core/utility.hpp

@@ -2,6 +2,9 @@
 #define ENTT_CORE_UTILITY_HPP
 
 
+#include "../config/config.h"
+
+
 namespace entt {
 
 
@@ -13,7 +16,7 @@ namespace entt {
  * @return Pointer to the member function.
  */
 template<typename Type, typename Class>
-constexpr auto overload(Type Class:: *member) { return member; }
+constexpr auto overload(Type Class:: *member) ENTT_NOEXCEPT { return member; }
 
 
 /**
@@ -23,7 +26,7 @@ constexpr auto overload(Type Class:: *member) { return member; }
  * @return Pointer to the function.
  */
 template<typename Type>
-constexpr auto overload(Type *func) { return func; }
+constexpr auto overload(Type *func) ENTT_NOEXCEPT { return func; }
 
 
 }