Skip to content

Commit

Permalink
Fix default initialization of container to use (), not {}, allowing C…
Browse files Browse the repository at this point in the history
…++98
  • Loading branch information
martinmoene committed May 20, 2024
1 parent 2e50128 commit 9744ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/nonstd/ring.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class ring
|| is_std_array<Container>::value
))
explicit ring()
: cont{}
: cont()
, rs( std11::begin(cont), std11::end(cont) )
{}

Expand Down

0 comments on commit 9744ec7

Please sign in to comment.