From da5f7f53272bbbb5afa42265db4f715cc420ef0e Mon Sep 17 00:00:00 2001 From: lachrymaL Date: Sun, 16 May 2021 12:31:40 -0400 Subject: [PATCH] get rid of em --- NouVeL/NVL.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/NouVeL/NVL.cpp b/NouVeL/NVL.cpp index c4835fd..c52938c 100644 --- a/NouVeL/NVL.cpp +++ b/NouVeL/NVL.cpp @@ -1,5 +1,4 @@ #include -#include #include "NVL.h" namespace { @@ -222,8 +221,11 @@ namespace NVL else { // early return if string is empty, this should only happen if calling from an object (not a call) - if (std::all_of(std::get(content).begin(), std::get(content).end(), isspace)) - return; + for (auto& c : std::get(content)) + { + if (!isspace(c)) + return; + } // default case if content does not match keywords this_object.Value = std::get(content); }