diff --git a/src/common/time.cpp b/src/common/time.cpp index 9161140e2..a81466ab7 100644 --- a/src/common/time.cpp +++ b/src/common/time.cpp @@ -22,10 +22,16 @@ #include "common/time.hpp" +#include + namespace cinelerra { + // TODO: dummy values; should be adjusted when switching to the real time implementation provided by the backend + + const Time Time::MAX = std::numeric_limits::max(); + const Time Time::MIN = -MAX; } // namespace cinelerra diff --git a/src/common/time.hpp b/src/common/time.hpp index 1e94effb7..482f074c9 100644 --- a/src/common/time.hpp +++ b/src/common/time.hpp @@ -24,6 +24,7 @@ #ifndef CINELERRA_TIME_H #define CINELERRA_TIME_H +#include namespace cinelerra @@ -38,13 +39,22 @@ namespace cinelerra * elaborate timehandling functions in the backend and the goal * is for class Time to be just a thin wrapper! */ - class Time + class Time : boost::totally_ordered