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 2, 2024
1 parent ae4cb75 commit 3515172
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion include/qx/containers/components.inl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ component_t* components<base_component_t>::add(
pRawComponent,
[ePriority, statusFlags, pRawComponent](SClassData& classData)
{
classData.priorityCache.emplace(ePriority, SClassData::SCacheData(pRawComponent, statusFlags));
classData.priorityCache.emplace(ePriority, typename SClassData::SCacheData(pRawComponent, statusFlags));
});
classData.components.push_back(std::move(pComponent));
return pRawComponent;
Expand Down
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>);
5 changes: 3 additions & 2 deletions tests/test_rtti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <qx/rtti/rtti_cast.h>

#include <memory>
#include <source_location>

class CClass1
{
Expand Down Expand Up @@ -196,9 +197,9 @@ TEST(rtti, class_id)
}

template<class T>
void TestDerivedFrom(const auto& pClass, bool bExpect)
void TestDerivedFrom(const auto& pClass, bool bExpect, std::source_location sr = std::source_location::current())
{
EXPECT_EQ(pClass->template is_derived_from<T>(), bExpect);
EXPECT_EQ(pClass->template is_derived_from<T>(), bExpect) << "Line: " << sr.line();

if constexpr (qx::details::has_get_class_id_static<T>)
{
Expand Down

0 comments on commit 3515172

Please sign in to comment.