fix timestamp const function

This commit is contained in:
tqcq
2024-03-01 19:40:00 +08:00
parent 7cec436317
commit 3d5039ed95
3 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ public:
StatusOr(StatusOr &&other)
: status_(std::move(other.status_)),
value_(std::move(value_))
value_(std::move(other.value_))
{
other.status_ = MakeDefaultStatus();
}

View File

@@ -63,7 +63,7 @@ public:
}
template<typename T = int64_t>
constexpr T ns()
constexpr T ns() const
{
return ToMultiple<1000, T>();
}