Skip to content

Commit 68f0d4e

Browse files
spaceship & added directory
1 parent 06b2c92 commit 68f0d4e

File tree

2 files changed

+3
-30
lines changed

2 files changed

+3
-30
lines changed

include/ydb-cpp-sdk/util/datetime/base.h

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ class TTimeBase {
167167
return Value_;
168168
}
169169

170+
auto operator<=>(const TTimeBase&) const = default;
171+
170172
protected:
171173
TValue Value_; // microseconds count
172174
};
@@ -581,36 +583,6 @@ ::NPrivate::TPrintableLocalTime<true, true> FormatIsoLocalUpToSeconds(TInstant i
581583
::NPrivate::TPrintableLocalTime<true, false> FormatLocalUpToSeconds(TInstant instant);
582584
///@}
583585

584-
template <class S>
585-
static constexpr bool operator<(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
586-
return l.GetValue() < r.GetValue();
587-
}
588-
589-
template <class S>
590-
static constexpr bool operator<=(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
591-
return l.GetValue() <= r.GetValue();
592-
}
593-
594-
template <class S>
595-
static constexpr bool operator==(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
596-
return l.GetValue() == r.GetValue();
597-
}
598-
599-
template <class S>
600-
static constexpr bool operator!=(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
601-
return l.GetValue() != r.GetValue();
602-
}
603-
604-
template <class S>
605-
static constexpr bool operator>(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
606-
return l.GetValue() > r.GetValue();
607-
}
608-
609-
template <class S>
610-
static constexpr bool operator>=(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
611-
return l.GetValue() >= r.GetValue();
612-
}
613-
614586
namespace NDateTimeHelpers {
615587
template <typename T>
616588
static constexpr T SumWithSaturation(T a, T b) {

tests/integration/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
add_subdirectory(basic_example_it)
2+
add_subdirectory(bulk_upsert_simple_it)

0 commit comments

Comments
 (0)