Revert "externals: Update boost to 1.72 and add Boost Context"

This commit is contained in:
bunnei 2020-02-22 00:33:06 -05:00 committed by GitHub
parent 8b4b26a2fd
commit faaf93d90b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
618 changed files with 14262 additions and 96298 deletions

View file

@ -13,7 +13,7 @@
#include <stdexcept>
#include <boost/config.hpp>
#include <boost/throw_exception.hpp>
#include <boost/type_traits/conditional.hpp>
#include <boost/mpl/if.hpp>
#include <boost/type_traits/is_base_of.hpp>
namespace boost {
@ -95,8 +95,8 @@ namespace CV {
}
};
typedef typename conditional<
is_base_of< std::exception, exception_type >::value,
typedef typename mpl::if_<
is_base_of< std::exception, exception_type >,
exception_type,
exception_wrapper
>::type actual_exception_type;

View file

@ -164,7 +164,7 @@ namespace date_time {
}
time_type operator+=(const time_duration_type& td)
{
time_ = time_system::add_time_duration(time_,td);
time_ = (time_system::get_time_rep(date(), time_of_day() + td));
return time_type(time_);
}
//! subtract time durations
@ -174,7 +174,7 @@ namespace date_time {
}
time_type operator-=(const time_duration_type& td)
{
time_ = time_system::subtract_time_duration(time_, td);
time_ = (time_system::get_time_rep(date(), time_of_day() - td));
return time_type(time_);
}

View file

@ -144,26 +144,10 @@ namespace date_time {
{
return duration_type(ticks_ * (-1));
}
duration_type abs() const
{
if ( is_negative() )
{
return invert_sign();
}
return duration_type(ticks_);
}
bool is_negative() const
{
return ticks_ < 0;
}
bool is_zero() const
{
return ticks_ == 0;
}
bool is_positive() const
{
return ticks_ > 0;
}
bool operator<(const time_duration& rhs) const
{
return ticks_ < rhs.ticks_;