Skip to content

Commit

Permalink
PATCH: static_assert(false) in constexpr is not supported.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Oct 2, 2023
1 parent 095229a commit f2c6b7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/handles/handles.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ class Handle final : public HandleBase {
//
// If you got an error here and want to access the Tagged<T>, use
// operator* -- e.g. for `Tagged<Smi>::value()`, use `(*handle).value()`.
static_assert(
false,
"This handle does not reference a heap object. Use `(*handle).foo`.");
//cjh static_assert(
// false,
// "This handle does not reference a heap object. Use `(*handle).foo`.");
#endif
}
}
Expand Down

0 comments on commit f2c6b7d

Please sign in to comment.