Skip to content

Commit

Permalink
Added TSelf alias
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriyPA committed Dec 10, 2024
1 parent 1364137 commit 8d645d1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ydb/library/conclusion/generic/status.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ class TConclusionStatusGenericImpl {
template <class TStatus, TStatus StatusOk, TStatus DefaultError>
class TConclusionStatusImpl : public TConclusionStatusGenericImpl<TStatus, StatusOk, DefaultError, TString, TConclusionStatusImpl<TStatus, StatusOk, DefaultError>> {
protected:
friend class TConclusionStatusGenericImpl<TStatus, StatusOk, DefaultError, TString, TConclusionStatusImpl<TStatus, StatusOk, DefaultError>>;

using TBase = TConclusionStatusGenericImpl<TStatus, StatusOk, DefaultError, TString, TConclusionStatusImpl<TStatus, StatusOk, DefaultError>>;
using TSelf = TConclusionStatusImpl<TStatus, StatusOk, DefaultError>;
using TBase = TConclusionStatusGenericImpl<TStatus, StatusOk, DefaultError, TString, TSelf>;
using TBase::TBase;

friend class TConclusionStatusGenericImpl<TStatus, StatusOk, DefaultError, TString, TSelf>;

TConclusionStatusImpl() = default;

TConclusionStatusImpl(const char* errorMessage, TStatus status = DefaultError)
Expand All @@ -109,11 +110,12 @@ class TConclusionStatusImpl : public TConclusionStatusGenericImpl<TStatus, Statu
template <class TStatus, TStatus StatusOk, TStatus DefaultError>
class TYQLConclusionStatusImpl : public TConclusionStatusGenericImpl<TStatus, StatusOk, DefaultError, NYql::TIssues, TYQLConclusionStatusImpl<TStatus, StatusOk, DefaultError>> {
protected:
friend class TConclusionStatusGenericImpl<TStatus, StatusOk, DefaultError, NYql::TIssues, TYQLConclusionStatusImpl<TStatus, StatusOk, DefaultError>>;

using TBase = TConclusionStatusGenericImpl<TStatus, StatusOk, DefaultError, NYql::TIssues, TYQLConclusionStatusImpl<TStatus, StatusOk, DefaultError>>;
using TSelf = TYQLConclusionStatusImpl<TStatus, StatusOk, DefaultError>;
using TBase = TConclusionStatusGenericImpl<TStatus, StatusOk, DefaultError, NYql::TIssues, TSelf>;
using TBase::TBase;

friend class TConclusionStatusGenericImpl<TStatus, StatusOk, DefaultError, NYql::TIssues, TSelf>;

TYQLConclusionStatusImpl() = default;

TYQLConclusionStatusImpl(const TString& errorMessage, TStatus status = DefaultError)
Expand Down

0 comments on commit 8d645d1

Please sign in to comment.