From f2c6b7d73aae4dbb6f59810192d9389f10353d43 Mon Sep 17 00:00:00 2001 From: James Chen Date: Sun, 1 Oct 2023 22:20:57 +0800 Subject: [PATCH] PATCH: static_assert(false) in constexpr is not supported. --- src/handles/handles.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/handles/handles.h b/src/handles/handles.h index 6c5d4b26a..1b3ecd692 100644 --- a/src/handles/handles.h +++ b/src/handles/handles.h @@ -134,9 +134,9 @@ class Handle final : public HandleBase { // // If you got an error here and want to access the Tagged, use // operator* -- e.g. for `Tagged::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 } }