summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/base/utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libcamera/base/utils.h b/include/libcamera/base/utils.h
index 9ab18101..cfff0583 100644
--- a/include/libcamera/base/utils.h
+++ b/include/libcamera/base/utils.h
@@ -327,6 +327,12 @@ class Duration : public std::chrono::duration<double, std::nano>
public:
Duration() = default;
+ template<typename Rep>
+ constexpr explicit Duration(const Rep &r)
+ : BaseDuration(r)
+ {
+ }
+
template<typename Rep, typename Period>
constexpr Duration(const std::chrono::duration<Rep, Period> &d)
: BaseDuration(d)