Skip to content

Commit

Permalink
Add a dummy element to array<T, 0> to enable initialization with = {{}}
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jan 26, 2025
1 parent 29700ff commit 567ba40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/boost/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ namespace boost {

template< class T >
class array< T, 0 > {
public:
struct {} elems; // enables initialization with = {{}}

public:
// type definitions
Expand Down

0 comments on commit 567ba40

Please sign in to comment.