update boost on linux
This commit is contained in:
@@ -549,8 +549,7 @@ operator>>(std::basic_istream<CharT, Traits>& is, duration<Rep, Period>& d)
|
||||
if (t > duration_values<common_type_t>::zero())
|
||||
{
|
||||
//std::cerr << __FILE__ << "[" << __LINE__ << "]"<< std::endl;
|
||||
Rep pt = t;
|
||||
if ( (duration_values<Rep>::max)() < pt)
|
||||
if ( (duration_values<Rep>::max)() < Rep(t))
|
||||
{
|
||||
//std::cerr << __FILE__ << "[" << __LINE__ << "]"<< std::endl;
|
||||
// Conversion to Period overflowed
|
||||
@@ -560,8 +559,7 @@ operator>>(std::basic_istream<CharT, Traits>& is, duration<Rep, Period>& d)
|
||||
}
|
||||
//std::cerr << __FILE__ << "[" << __LINE__ << "]"<< std::endl;
|
||||
// Success! Store it.
|
||||
r = Rep(t);
|
||||
d = duration<Rep, Period>(r);
|
||||
d = duration<Rep, Period>(Rep(t));
|
||||
is.setstate(err);
|
||||
//std::cerr << __FILE__ << "[" << __LINE__ << "]"<< std::endl;
|
||||
return is;
|
||||
|
||||
Reference in New Issue
Block a user