From 1e7ae74d4edb3e0a1b0f1b4b990f737422375898 Mon Sep 17 00:00:00 2001 From: terik23 Date: Sat, 17 Mar 2018 10:06:38 +0500 Subject: [PATCH] Fix compiling if not include size_t --- example/example.cpp | 1 - src/nameof.hpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.cpp b/example/example.cpp index 1ae8d8d..f8996d4 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -24,7 +24,6 @@ // Simple Example. #include -#include #include struct SomeStruct { diff --git a/src/nameof.hpp b/src/nameof.hpp index 5bc7c6c..4c00fec 100644 --- a/src/nameof.hpp +++ b/src/nameof.hpp @@ -22,6 +22,7 @@ // SOFTWARE. #pragma once +#include inline constexpr const char* template_nameof_(const char* name, size_t length) { return length == 0 ? name