From 7c9bb4d540652b5a260943365e70fd6b4761ea71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 1 Oct 2022 18:23:37 +0200 Subject: [PATCH] Add constant value to the main struct in BOOST_INTRUSIVE_OPTION_CONSTANT --- include/boost/intrusive/pack_options.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/intrusive/pack_options.hpp b/include/boost/intrusive/pack_options.hpp index 0ae349d..66761d7 100644 --- a/include/boost/intrusive/pack_options.hpp +++ b/include/boost/intrusive/pack_options.hpp @@ -251,6 +251,8 @@ struct OPTION_NAME \ template< TYPE VALUE> \ struct OPTION_NAME \ { \ + static const TYPE value = VALUE; \ + \ template \ struct pack : Base \ { \