Skip to content

Commit

Permalink
Name union to prevent compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed May 21, 2020
1 parent 1824def commit 3217b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prevector.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class prevector {

private:
size_type _size;
union {
union direct_or_indirect {
char direct[sizeof(T) * N];
struct {
size_type capacity;
Expand Down

0 comments on commit 3217b2b

Please sign in to comment.