Skip to content

Commit

Permalink
Fixed clang build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille committed Apr 10, 2024
1 parent f8c5b78 commit ccdb69c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions include/sparrow/buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ namespace sparrow

template <class A>
requires (not std::same_as<A, buffer<T>> and allocator<A>)
constexpr explicit buffer(const A& a);
constexpr explicit buffer(const A& a)
: base_type(a)
{
}

template <allocator A = allocator_type>
explicit buffer(size_type n, const A& a = A());
Expand Down Expand Up @@ -374,14 +377,6 @@ namespace sparrow
* buffer implementation *
*************************/

template <class T>
template <class A>
requires (not std::same_as<A, buffer<T>> and allocator<A>)
constexpr buffer<T>::buffer(const A& a)
: base_type(a)
{
}

template <class T>
template <allocator A>
buffer<T>::buffer(size_type n, const A& a)
Expand Down

0 comments on commit ccdb69c

Please sign in to comment.