From 39f203691593bf8bfe4c26023a0c026960d98ae0 Mon Sep 17 00:00:00 2001 From: Neargye Date: Sat, 1 Sep 2018 15:24:52 +0500 Subject: [PATCH] fix clang build --- include/nameof.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index ba4565b..6c033eb 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -195,7 +195,7 @@ class cstring final { } friend std::string operator+(cstring lhs, cstring rhs) { - return std::string{lhs} +std::string{rhs}; + return std::string{lhs.str_, lhs.size_} + std::string{rhs.str_, rhs.size_}; } friend std::ostream& operator<<(std::ostream& os, cstring str) {