diff --git a/src/nameof.hpp b/src/nameof.hpp index 7b1e637..c8d36cd 100644 --- a/src/nameof.hpp +++ b/src/nameof.hpp @@ -1,5 +1,5 @@ // nameof() c++11 https://github.com/Terik23/nameof -// Vesion 0.1.3 +// Vesion 0.1.4 // // Licensed under the MIT License . // Copyright (c) 2016 - 2018 Daniil Goncharov . @@ -28,7 +28,7 @@ namespace nameof { template -constexpr const char* Nameof(const char(&name)[N], const size_t length = N) { +inline constexpr const char* Nameof(const char(&name)[N], const size_t length = N) { return length == 0 ? name : (name[length - 1] == ' ' || name[length - 1] == '.' || name[length - 1] == '>' || name[length - 1] == ':' ||