Missing include.
authorCarl Hetherington <cth@carlh.net>
Wed, 8 Jul 2015 23:43:09 +0000 (00:43 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 8 Jul 2015 23:43:09 +0000 (00:43 +0100)
src/sub_time.cc

index 7d8ebb629932194923c408f94421590f3dd9a9ca..68dac19e40af64bb3d48ac7c4c6b7a5e7f55947b 100644 (file)
@@ -21,6 +21,7 @@
 #include "exceptions.h"
 #include <cmath>
 #include <iomanip>
+#include <iostream>
 
 using std::ostream;
 using std::cout;
@@ -44,7 +45,7 @@ sub::operator< (sub::Time const & a, sub::Time const & b)
        if ((a._rate && !b._rate) || (!a._rate && b._rate)) {
                throw UnknownFrameRateError ();
        }
-       
+
        return (a._frames * a._rate.get().numerator * b._rate.get().denominator) < (b._frames * b._rate.get().numerator * a._rate.get().denominator);
 }
 
@@ -63,7 +64,7 @@ sub::operator> (sub::Time const & a, sub::Time const & b)
        if ((a._rate && !b._rate) || (!a._rate && b._rate)) {
                throw UnknownFrameRateError ();
        }
-       
+
        return (a._frames * a._rate.get().numerator * b._rate.get().denominator) > (b._frames * b._rate.get().numerator * a._rate.get().denominator);
 }
 
@@ -131,7 +132,7 @@ Time::frames_at (Rational rate) const
        if (!_rate) {
                throw UnknownFrameRateError ();
        }
-       
+
        return rint (double (_frames) * _rate.get().denominator * rate.numerator / (_rate.get().numerator * rate.denominator));
 }