From ee3da3784e13c9f5164206a373d14d3f7aa9d245 Mon Sep 17 00:00:00 2001 From: Nick Hengeveld Date: Mon, 24 Oct 2022 22:28:57 +0000 Subject: [PATCH] Use CXX14 to allow constexpr with non-return statements Co-authored-by: Daniel Colson --- include/ruby/internal/special_consts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ruby/internal/special_consts.h b/include/ruby/internal/special_consts.h index 6943ef9b94..ed2428e087 100644 --- a/include/ruby/internal/special_consts.h +++ b/include/ruby/internal/special_consts.h @@ -192,7 +192,7 @@ RB_UNDEF_P(VALUE obj) } RBIMPL_ATTR_CONST() -RBIMPL_ATTR_CONSTEXPR(CXX11) +RBIMPL_ATTR_CONSTEXPR(CXX14) RBIMPL_ATTR_ARTIFICIAL() /** * Checks if the given object is nil or undef. Can be used to see if