Skip to content

Commit

Permalink
Better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JMazurkiewicz committed Mar 14, 2024
1 parent be1fe95 commit 5d68323
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
constexpr int pass(int n) { return n; }

void test() {
{ // Test calling constexpr function from non-constexpr `bind_back` unspecified-type
{ // Test calling constexpr function from non-constexpr `bind_back` result
auto f1 = std::bind_back(pass, 1);
static_assert(f1() == 1); // expected-error {{static assertion expression is not an integral constant expression}}
}
Expand Down

0 comments on commit 5d68323

Please sign in to comment.