From 567ba40840607ad546dc8236f781d78f512ae5ee Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 26 Jan 2025 21:15:39 +0200 Subject: [PATCH] Add a dummy element to array to enable initialization with = {{}} --- include/boost/array.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/array.hpp b/include/boost/array.hpp index 624b26a..a66de58 100644 --- a/include/boost/array.hpp +++ b/include/boost/array.hpp @@ -195,6 +195,8 @@ namespace boost { template< class T > class array< T, 0 > { + public: + struct {} elems; // enables initialization with = {{}} public: // type definitions