fix timestamp const function
This commit is contained in:
parent
7cec436317
commit
3d5039ed95
@ -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)
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ public:
|
||||
}
|
||||
|
||||
template<typename T = int64_t>
|
||||
constexpr T ns()
|
||||
constexpr T ns() const
|
||||
{
|
||||
return ToMultiple<1000, T>();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user