From d26fccaa447c1f7fb31de58cb09d641cff4034a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Chmiel?= Date: Thu, 18 Sep 2025 16:57:13 +0200 Subject: [PATCH] Use C++14 decay_t (#6454) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bartłomiej Chmiel --- src/V3Global.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/V3Global.h b/src/V3Global.h index a9706c46a..5f876f95c 100644 --- a/src/V3Global.h +++ b/src/V3Global.h @@ -46,8 +46,7 @@ class V3ThreadPool; /// Save a given variable's value on the stack, restoring it at end-of-scope. // Object must be named, or it will not persist until end-of-scope. // Constructor needs () or GCC 4.8 false warning. -#define VL_RESTORER(var) \ - const VRestorer::type> restorer_##var(var); +#define VL_RESTORER(var) const VRestorer> restorer_##var(var); /// Get the copy of the variable previously saved by VL_RESTORER() #define VL_RESTORER_PREV(var) restorer_##var.saved()