From c71de0fc95d1cdb766620096d18986c3e8cfca51 Mon Sep 17 00:00:00 2001 From: Terik23 Date: Mon, 2 Apr 2018 16:25:58 +0500 Subject: [PATCH] v0.1.4 --- src/nameof.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] == ':' ||