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
paveljanik committed Dec 2, 2015
1 parent 16f4a6e commit 1812de9
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 @@ -140,7 +140,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 1812de9

Please sign in to comment.