minor changes

This commit is contained in:
Michele Caini
2019-08-25 16:52:59 +02:00
parent 576b931090
commit 643a20fec3

View File

@@ -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; }
}