Skip to content

Commit adeee31

Browse files
Use default arch alignment as default alignment for xsimd::aligned_allocator
1 parent e28ef98 commit adeee31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xsimd/memory/xsimd_aligned_allocator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace xsimd
3939
* @tparam T type of objects to allocate.
4040
* @tparam Align alignment in bytes.
4141
*/
42-
template <class T, size_t Align>
42+
template <class T, size_t Align=default_arch::alignment()>
4343
class aligned_allocator
4444
{
4545
public:

0 commit comments

Comments
 (0)