mirror of
https://git.suyu.dev/suyu/ext-boost.git
synced 2025-12-24 00:04:41 +01:00
Revert "externals: Update boost to 1.72 and add Boost Context"
This commit is contained in:
parent
8b4b26a2fd
commit
faaf93d90b
618 changed files with 14262 additions and 96298 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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_);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue