Skip to content

Commit

Permalink
Remove invalid constexprs
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Dec 27, 2023
1 parent 9ca7a76 commit 7655682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tinyexpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,13 +622,13 @@ namespace te_builtins
}

[[nodiscard]]
constexpr static te_type te_if(te_type val1, te_type val2, te_type val3)
static te_type te_if(te_type val1, te_type val2, te_type val3)
{
return te_parser::double_to_bool(val1) ? val2 : val3;
}

[[nodiscard]]
constexpr static te_type te_ifs(te_type if1, te_type if1True, te_type if2, te_type if2True,
static te_type te_ifs(te_type if1, te_type if1True, te_type if2, te_type if2True,
te_type if3, te_type if3True)
{
return te_parser::double_to_bool(if1) ? if1True :
Expand Down

0 comments on commit 7655682

Please sign in to comment.