fix timestamp const function
All checks were successful
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 35s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 34s

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

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 2.8)
project(sled LANGUAGES C CXX)
cmake_minimum_required(VERSION 3.10)
project(sled VERSION 0.1.0 LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

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>();
}