Skip to content

Commit 0c1d6e2

Browse files
committed
Update single_include/inja.hpp
1 parent 2ae82c8 commit 0c1d6e2

File tree

2 files changed

+3122
-3034
lines changed

2 files changed

+3122
-3034
lines changed

include/inja/environment.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ class Environment {
3131
using BasicArg = std::remove_const_t<
3232
std::remove_pointer_t<std::remove_reference_t<std::decay_t<Arg>>>>;
3333

34-
constexpr bool is_valid_arg =
35-
std::is_const_v<std::remove_reference_t<Arg>> ||
34+
constexpr bool check = std::is_const_v<std::remove_reference_t<Arg>> ||
3635
std::is_same_v<BasicArg, Arg>;
37-
static_assert(is_valid_arg, "Arguments should be either const& or a value type");
36+
static_assert(check, "Arguments should be either const& or a value type");
3837

3938
if constexpr (std::is_same_v<BasicArg, json>) {
4039
return *args[index];

0 commit comments

Comments
 (0)