Add an AsTicksT template cast with clamping to DateTicksScaledDelta
Implement AsTicks in terms of AsTicksT
This commit is contained in:
@@ -62,7 +62,10 @@ struct DateTicksScaledDeltaOperations {
|
|||||||
TBaseType GetBase() const { return static_cast<const TType &>(*this).base(); }
|
TBaseType GetBase() const { return static_cast<const TType &>(*this).base(); }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Ticks AsTicks() const { return (Ticks)this->GetBase(); }
|
template<typename T>
|
||||||
|
T AsTicksT() const { return ClampTo<T>(this->GetBase()); }
|
||||||
|
|
||||||
|
Ticks AsTicks() const { return this->AsTicksT<Ticks>(); }
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user