Skip to content

Commit

Permalink
fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
n0lavar committed Jan 1, 2024
1 parent ae4cb75 commit 16a3eac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions include/qx/patterns/contiguous_iterator/base_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
namespace qx
{

template<class container_t, class derived_t>
class base_forward_iterator;

template<class container_t, class derived_t>
class base_reverse_iterator;

/**
@class base_iterator
Expand All @@ -37,8 +31,11 @@ template<class container_t>
class base_iterator
{
public:
friend base_forward_iterator;
friend base_reverse_iterator;
template<class container_t_, class derived_t_>
friend class base_forward_iterator;

template<class container_t_, class derived_t_>
friend class base_reverse_iterator;

using difference_type = typename container_t::difference_type;
using size_type = typename container_t::size_type;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_concepts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ class C3 : public C1<float>

static_assert(qx::derived_from_template_c<C2, C1>);
static_assert(qx::derived_from_template_c<C3, C1>);
static_assert(!qx::derived_from_template_c<C, C1>);
static_assert(!qx::derived_from_template_c<C<int>, C1>);

0 comments on commit 16a3eac

Please sign in to comment.