From 8c632c84466bdeee6c5a94fc8e81b55d9008fb54 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 14 Nov 2021 14:56:45 -0700 Subject: [PATCH] temporal: allow negative timecnt_t to be used when constructing a timepos_t Negative positions are legal and should be handled by higher level logic --- libs/temporal/timeline.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libs/temporal/timeline.cc b/libs/temporal/timeline.cc index 0300fbf552..c30984fd00 100644 --- a/libs/temporal/timeline.cc +++ b/libs/temporal/timeline.cc @@ -446,11 +446,6 @@ std::operator>> (std::istream & o, timecnt_t & tc) timepos_t::timepos_t (timecnt_t const & t) { - if (t.distance() < 0) { - std::cerr << "timecnt_t has negative distance distance " << " val " << t.distance().val() << " flagged " << t.distance().flagged() << std::endl; - throw std::domain_error("negative value for timepos_t constructor"); - } - v = build (t.distance().flagged(), t.distance ().val()); }