From 5ae17f4a86a021fb914f0c17b116dc511e5f3f93 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Thu, 28 Dec 2023 12:33:01 -0500 Subject: [PATCH] fix msvc error --- include/blt/std/utility.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/blt/std/utility.h b/include/blt/std/utility.h index 6ec36e6..b007bb0 100644 --- a/include/blt/std/utility.h +++ b/include/blt/std/utility.h @@ -238,7 +238,7 @@ namespace blt #endif template - void BLT_ATTRIB_NO_INLINE black_box(const T& val) + BLT_ATTRIB_NO_INLINE void black_box(const T& val) { static volatile void* hell; hell = (void*) &val; @@ -246,7 +246,7 @@ namespace blt } template - const T& BLT_ATTRIB_NO_INLINE black_box_ret(const T& val) + BLT_ATTRIB_NO_INLINE const T& black_box_ret(const T& val) { static volatile void* hell; hell = (void*) &val;