@@ -1754,9 +1754,10 @@ namespace details
1754
1754
{
1755
1755
1756
1756
template <typename alloc, bool zero>
1757
- requires (::fast_io::generic_allocator_adapter<alloc>::has_native_allocate)
1758
1757
inline constexpr void *allocator_pointer_aligned_impl (::std::size_t alignment, ::std::size_t n) noexcept
1759
- {
1758
+ {
1759
+ static_assert (::fast_io::generic_allocator_adapter<alloc>::has_native_allocate);
1760
+
1760
1761
constexpr ::std::size_t defaultalignment{::fast_io::details::calculate_default_alignment<alloc>()};
1761
1762
bool const alignedadjustment{defaultalignment < alignment};
1762
1763
if (alignedadjustment)
@@ -1780,9 +1781,10 @@ inline constexpr void *allocator_pointer_aligned_impl(::std::size_t alignment, :
1780
1781
}
1781
1782
1782
1783
template <typename alloc, bool zero>
1783
- requires (::fast_io::generic_allocator_adapter<alloc>::has_native_allocate)
1784
1784
inline constexpr ::fast_io::allocation_least_result allocator_pointer_aligned_at_least_impl (::std::size_t alignment, ::std::size_t n) noexcept
1785
- {
1785
+ {
1786
+ static_assert (::fast_io::generic_allocator_adapter<alloc>::has_native_allocate);
1787
+
1786
1788
constexpr ::std::size_t defaultalignment{::fast_io::details::calculate_default_alignment<alloc>()};
1787
1789
bool const alignedadjustment{defaultalignment < alignment};
1788
1790
if (alignedadjustment)
@@ -1809,9 +1811,10 @@ inline constexpr ::fast_io::allocation_least_result allocator_pointer_aligned_at
1809
1811
1810
1812
#if 0
1811
1813
template <typename alloc, bool zero>
1812
- requires(::fast_io::generic_allocator_adapter<alloc>::has_native_handle_allocate)
1813
1814
inline constexpr void *status_allocator_pointer_aligned_impl(typename alloc::handle_type handle, ::std::size_t alignment, ::std::size_t n) noexcept
1814
1815
{
1816
+ static_assert(::fast_io::generic_allocator_adapter<alloc>::has_native_handle_allocate);
1817
+
1815
1818
constexpr ::std::size_t defaultalignment{::fast_io::details::calculate_default_alignment<alloc>()};
1816
1819
bool const alignedadjustment{defaultalignment < alignment};
1817
1820
if (alignedadjustment)
@@ -1835,9 +1838,10 @@ inline constexpr void *status_allocator_pointer_aligned_impl(typename alloc::han
1835
1838
}
1836
1839
1837
1840
template <typename alloc, bool zero>
1838
- requires(::fast_io::generic_allocator_adapter<alloc>::has_native_handle_allocate)
1839
1841
inline constexpr ::fast_io::allocation_least_result status_allocator_pointer_aligned_impl(typename alloc::handle_type handle, ::std::size_t alignment, ::std::size_t n) noexcept
1840
1842
{
1843
+ static_assert(::fast_io::generic_allocator_adapter<alloc>::has_native_handle_allocate);
1844
+
1841
1845
constexpr ::std::size_t defaultalignment{::fast_io::details::calculate_default_alignment<alloc>()};
1842
1846
bool const alignedadjustment{defaultalignment < alignment};
1843
1847
if (alignedadjustment)
0 commit comments