forked from boostorg/array
Add a dummy element to array<T, 0> to enable initialization with = {{}}
This commit is contained in:
1 parent
29700ff270
commit
567ba40840
1 file changed
+2
@@ -195,6 +195,8 @@ namespace boost {
|
|||||||
|
|
||||||
template< class T >
|
template< class T >
|
||||||
class array< T, 0 > {
|
class array< T, 0 > {
|
||||||
|
public:
|
||||||
|
struct {} elems; // enables initialization with = {{}}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// type definitions
|
// type definitions
|
||||||
|
|||||||
Reference in new issue
Block a user