mirror of
https://github.com/boostorg/array.git
synced 2026-01-24 16:12:26 +01: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