Skip to content

Commit

Permalink
made operator() protected
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jul 3, 2023
1 parent 56965d6 commit 3f92662
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/orm/tiny/support/stores/baserelationstore.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ namespace Support::Stores
{
Q_DISABLE_COPY(BaseRelationStore)

// To access operator()
friend Derived;

/*! Alias for the NotNull. */
template<typename T>
using NotNull = Orm::Utils::NotNull<T>;
Expand All @@ -104,12 +107,12 @@ namespace Support::Stores
/*! Visit the given relation. */
void visit(const QString &relation);

protected:
/*! Called from Model::u_relations to pass reference to the relation method,
an enter point of the visitation. */
template<RelationshipMethod<Derived> Method>
void operator()(Method method);

protected:
/*! Currently held store type. */
inline RelationStoreType getStoreType() const noexcept;

Expand Down

0 comments on commit 3f92662

Please sign in to comment.