get rid of em <algorithm>
This commit is contained in:
parent
8efd8c1470
commit
da5f7f5327
1 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
|||
#include <map>
|
||||
#include <algorithm>
|
||||
#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<std::string>(content).begin(), std::get<std::string>(content).end(), isspace))
|
||||
return;
|
||||
for (auto& c : std::get<std::string>(content))
|
||||
{
|
||||
if (!isspace(c))
|
||||
return;
|
||||
}
|
||||
// default case if content does not match keywords
|
||||
this_object.Value = std::get<std::string>(content);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue