From 78ffb6dbd3c3696f5838d005e3f159b42805172c Mon Sep 17 00:00:00 2001 From: Peter Conrad Date: Thu, 22 Aug 2019 11:11:17 +0200 Subject: [PATCH] Possible fix for core #1952 --- include/fc/variant.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fc/variant.hpp b/include/fc/variant.hpp index f7ef613..b083012 100644 --- a/include/fc/variant.hpp +++ b/include/fc/variant.hpp @@ -27,7 +27,7 @@ namespace fc { void throw_assertion_failure( const std::string& message ); } -#define _FC_ASSERT( cond, msg ) { if( !(cond) ) { fc::throw_assertion_failure( #cond ": " msg ); } } +#define _FC_ASSERT( cond, msg ) { if( !(cond) ) { char t[] = #cond ": " msg; fc::throw_assertion_failure( t ); } } #endif namespace fc