Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*build*/
.DS_Store
.cache/
compile_commands.json
3 changes: 2 additions & 1 deletion include/mcl/memory/overaligned_unique_ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#pragma once

#include <memory>
#include <type_traits>

#ifdef _MSC_VER
Expand Down Expand Up @@ -36,7 +37,7 @@ auto make_overaligned_unique_ptr_array(size_t element_count)
{
const size_t min_size = element_count * sizeof(T);
const size_t alloc_size = (min_size + alignment - 1) / alignment * alignment;
#ifdef _MSC_VER
#ifdef _WIN32
return overaligned_unique_ptr<alignment, T[]>{static_cast<T*>(_aligned_malloc(alloc_size, alignment))};
#else
return overaligned_unique_ptr<alignment, T[]>{static_cast<T*>(std::aligned_alloc(alignment, alloc_size))};
Expand Down
4 changes: 2 additions & 2 deletions include/mcl/mp/typelist/lift_sequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ namespace detail {
template<class VL>
struct lift_sequence_impl;

template<class T, template<class, T...> class VLT, T... values>
template <template <class T, T...> class VLT, class T, T... values>
struct lift_sequence_impl<VLT<T, values...>> {
using type = list<std::integral_constant<T, values>...>;
using type = list<std::integral_constant<T, values>...>;
};

} // namespace detail
Expand Down