However, make_shared does not respect custom alignment requirements which the Foo type may have. new should do that, from what I understand. This is an issue at least in C++14.
For reference, the tidy file is here. I assume +modernize-make-shared is the reason, but should this even be an option to misalign memory potentially?
clang-tidy will suggest to change code like this
to
However,
make_shared
does not respect custom alignment requirements which theFoo
type may have.new
should do that, from what I understand. This is an issue at least in C++14.For reference, the tidy file is here. I assume
+modernize-make-shared
is the reason, but should this even be an option to misalign memory potentially?