We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae82c8 commit 0c1d6e2Copy full SHA for 0c1d6e2
include/inja/environment.hpp
@@ -31,10 +31,9 @@ class Environment {
31
using BasicArg = std::remove_const_t<
32
std::remove_pointer_t<std::remove_reference_t<std::decay_t<Arg>>>>;
33
34
- constexpr bool is_valid_arg =
35
- std::is_const_v<std::remove_reference_t<Arg>> ||
+ constexpr bool check = std::is_const_v<std::remove_reference_t<Arg>> ||
36
std::is_same_v<BasicArg, Arg>;
37
- static_assert(is_valid_arg, "Arguments should be either const& or a value type");
+ static_assert(check, "Arguments should be either const& or a value type");
38
39
if constexpr (std::is_same_v<BasicArg, json>) {
40
return *args[index];
0 commit comments