소스 검색

minor changes

Michele Caini 7 년 전
부모
커밋
643a20fec3
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  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; }
 
 
 }