Skip to content

Commit 567ba40

Browse files
committed
Add a dummy element to array<T, 0> to enable initialization with = {{}}
1 parent 29700ff commit 567ba40

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/boost/array.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ namespace boost {
195195

196196
template< class T >
197197
class array< T, 0 > {
198+
public:
199+
struct {} elems; // enables initialization with = {{}}
198200

199201
public:
200202
// type definitions

0 commit comments

Comments
 (0)