mirror of
https://github.com/boostorg/array.git
synced 2025-07-29 20:27:21 +02:00
Add a dummy element to array<T, 0> to enable initialization with = {{}}
This commit is contained in:
@ -195,6 +195,8 @@ namespace boost {
|
||||
|
||||
template< class T >
|
||||
class array< T, 0 > {
|
||||
public:
|
||||
struct {} elems; // enables initialization with = {{}}
|
||||
|
||||
public:
|
||||
// type definitions
|
||||
|
Reference in New Issue
Block a user