Skip to content

Commit 20f6543

Browse files
committed
Fix missing alignment parameter to std::aligned_storage
1 parent 7761f49 commit 20f6543

File tree

1 file changed

+1
-1
lines changed
  • src/bsoncxx/lib/bsoncxx/v_noabi/bsoncxx/private

1 file changed

+1
-1
lines changed

src/bsoncxx/lib/bsoncxx/v_noabi/bsoncxx/private/stack.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class stack {
9494
}
9595

9696
private:
97-
typename std::aligned_storage<sizeof(T)>::type _object_memory[size];
97+
typename std::aligned_storage<sizeof(T), alignof(T)>::type _object_memory[size];
9898

9999
std::list<T*> _buckets;
100100

0 commit comments

Comments
 (0)