Skip to content

Commit 1812de9

Browse files
committed
Name union to prevent compiler warning
1 parent 16f4a6e commit 1812de9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prevector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class prevector {
140140

141141
private:
142142
size_type _size;
143-
union {
143+
union direct_or_indirect {
144144
char direct[sizeof(T) * N];
145145
struct {
146146
size_type capacity;

0 commit comments

Comments
 (0)