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
This commit is contained in:
parent
d9b9f4f588
commit
8c632c8446
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user