Skip to content

Commit

Permalink
trying alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
dietmarkuehl committed Jan 22, 2025
1 parent 3484c74 commit 4f42f57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#-dk: note to self: PATH=/opt/llvm-19.1.6/bin:$PATH LDFLAGS=-fuse-ld=lld

.PHONY: config test default compile clean

BUILDDIR = build
Expand Down
2 changes: 1 addition & 1 deletion include/beman/lazy/detail/allocator_support.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace beman::lazy::detail {
* into the object and pull it out from there.
*/
template <typename Allocator, typename Derived>
struct allocator_support {
struct alignas(Allocator) allocator_support {
std::array<std::byte, sizeof(Allocator)> buffer;
template <typename... Args>
allocator_support(const Args&... args) {
Expand Down

0 comments on commit 4f42f57

Please sign in to comment.