2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-01-24 05:52:17 +00:00

gcc 4.9/5.0 travis

This commit is contained in:
Emil Dotchevski
2019-02-15 21:33:23 -08:00
parent 0df196f738
commit 41a0ccf500
4 changed files with 22 additions and 22 deletions

View File

@@ -240,12 +240,6 @@ namespace boost { namespace leaf {
protected:
template <class TryBlock, class... H>
decltype(std::declval<TryBlock>()()) try_catch_( TryBlock &&, H && ... ) const;
template <class TryBlock, class RemoteH>
decltype(std::declval<TryBlock>()()) remote_try_catch_( TryBlock &&, RemoteH && ) const;
template <class R, class... H>
typename std::decay<decltype(std::declval<R>().value())>::type handle_all( R const &, H && ... ) const noexcept;
@@ -259,16 +253,22 @@ namespace boost { namespace leaf {
R remote_handle_some( R const &, RemoteH && ) const;
template <class TryBlock, class... H>
typename std::decay<decltype(std::declval<TryBlock>()().value())>::type try_handle_all( TryBlock &&, H && ... ) const;
typename std::decay<decltype(std::declval<TryBlock>()().value())>::type try_handle_all_( TryBlock &&, H && ... ) const;
template <class TryBlock, class RemoteH>
typename std::decay<decltype(std::declval<TryBlock>()().value())>::type remote_try_handle_all( TryBlock &&, RemoteH && ) const;
typename std::decay<decltype(std::declval<TryBlock>()().value())>::type remote_try_handle_all_( TryBlock &&, RemoteH && ) const;
template <class TryBlock, class... H>
typename std::decay<decltype(std::declval<TryBlock>()())>::type try_handle_some( context_activator &, TryBlock &&, H && ... ) const;
typename std::decay<decltype(std::declval<TryBlock>()())>::type try_handle_some_( context_activator &, TryBlock &&, H && ... ) const;
template <class TryBlock, class RemoteH>
typename std::decay<decltype(std::declval<TryBlock>()())>::type remote_try_handle_some( context_activator &, TryBlock &&, RemoteH && ) const;
typename std::decay<decltype(std::declval<TryBlock>()())>::type remote_try_handle_some_( context_activator &, TryBlock &&, RemoteH && ) const;
template <class TryBlock, class... H>
decltype(std::declval<TryBlock>()()) try_catch_( TryBlock &&, H && ... ) const;
template <class TryBlock, class RemoteH>
decltype(std::declval<TryBlock>()()) remote_try_catch_( TryBlock &&, RemoteH && ) const;
};
template <class... E>

View File

@@ -790,7 +790,7 @@ namespace boost { namespace leaf {
template <class... E>
template <class TryBlock, class... H>
typename std::decay<decltype(std::declval<TryBlock>()().value())>::type context_base<E...>::try_handle_all( TryBlock && try_block, H && ... h ) const
typename std::decay<decltype(std::declval<TryBlock>()().value())>::type context_base<E...>::try_handle_all_( TryBlock && try_block, H && ... h ) const
{
using namespace leaf_detail;
static_assert(is_result_type<decltype(std::declval<TryBlock>()())>::value, "The return type of the try_block passed to a try_handle_all function must be registered with leaf::is_result_type");
@@ -803,7 +803,7 @@ namespace boost { namespace leaf {
template <class... E>
template <class TryBlock, class RemoteH>
typename std::decay<decltype(std::declval<TryBlock>()().value())>::type context_base<E...>::remote_try_handle_all( TryBlock && try_block, RemoteH && h ) const
typename std::decay<decltype(std::declval<TryBlock>()().value())>::type context_base<E...>::remote_try_handle_all_( TryBlock && try_block, RemoteH && h ) const
{
using namespace leaf_detail;
static_assert(is_result_type<decltype(std::declval<TryBlock>()())>::value, "The return type of the try_block passed to a remote_try_handle_all function must be registered with leaf::is_result_type");
@@ -816,7 +816,7 @@ namespace boost { namespace leaf {
template <class... E>
template <class TryBlock, class... H>
typename std::decay<decltype(std::declval<TryBlock>()())>::type context_base<E...>::try_handle_some( context_activator & active_context, TryBlock && try_block, H && ... h ) const
typename std::decay<decltype(std::declval<TryBlock>()())>::type context_base<E...>::try_handle_some_( context_activator & active_context, TryBlock && try_block, H && ... h ) const
{
using namespace leaf_detail;
static_assert(is_result_type<decltype(std::declval<TryBlock>()())>::value, "The return type of the try_block passed to a try_handle_some function must be registered with leaf::is_result_type");
@@ -834,7 +834,7 @@ namespace boost { namespace leaf {
template <class... E>
template <class TryBlock, class RemoteH>
typename std::decay<decltype(std::declval<TryBlock>()())>::type context_base<E...>::remote_try_handle_some( context_activator & active_context, TryBlock && try_block, RemoteH && h ) const
typename std::decay<decltype(std::declval<TryBlock>()())>::type context_base<E...>::remote_try_handle_some_( context_activator & active_context, TryBlock && try_block, RemoteH && h ) const
{
using namespace leaf_detail;
static_assert(is_result_type<decltype(std::declval<TryBlock>()())>::value, "The return type of the try_block passed to a remote_try_handle_some function must be registered with leaf::is_result_type");

View File

@@ -18,7 +18,7 @@ namespace boost { namespace leaf {
typename std::decay<decltype(std::declval<TryBlock>()().value())>::type nocatch_context<E...>::try_handle_all( TryBlock && try_block, H && ... h ) noexcept
{
context_activator active_context(*this, context_activator::on_deactivation::do_not_propagate);
return context_base<E...>::try_handle_all( std::forward<TryBlock>(try_block), std::forward<H>(h)... );
return this->try_handle_all_( std::forward<TryBlock>(try_block), std::forward<H>(h)... );
}
template <class... E>
@@ -26,7 +26,7 @@ namespace boost { namespace leaf {
typename std::decay<decltype(std::declval<TryBlock>()().value())>::type nocatch_context<E...>::remote_try_handle_all( TryBlock && try_block, RemoteH && h ) noexcept
{
context_activator active_context(*this, context_activator::on_deactivation::do_not_propagate);
return context_base<E...>::remote_try_handle_all( std::forward<TryBlock>(try_block), std::forward<RemoteH>(h) );
return this->remote_try_handle_all_( std::forward<TryBlock>(try_block), std::forward<RemoteH>(h) );
}
template <class... E>
@@ -34,7 +34,7 @@ namespace boost { namespace leaf {
typename std::decay<decltype(std::declval<TryBlock>()())>::type nocatch_context<E...>::try_handle_some( TryBlock && try_block, H && ... h )
{
context_activator active_context(*this, context_activator::on_deactivation::propagate_if_uncaught_exception);
return context_base<E...>::try_handle_some( active_context, std::forward<TryBlock>(try_block), std::forward<H>(h)... );
return this->try_handle_some_( active_context, std::forward<TryBlock>(try_block), std::forward<H>(h)... );
}
template <class... E>
@@ -42,7 +42,7 @@ namespace boost { namespace leaf {
typename std::decay<decltype(std::declval<TryBlock>()())>::type nocatch_context<E...>::remote_try_handle_some( TryBlock && try_block, RemoteH && h )
{
context_activator active_context(*this, context_activator::on_deactivation::propagate_if_uncaught_exception);
return context_base<E...>::remote_try_handle_some( active_context, std::forward<TryBlock>(try_block), std::forward<RemoteH>(h) );
return this->remote_try_handle_some_( active_context, std::forward<TryBlock>(try_block), std::forward<RemoteH>(h) );
}
}

View File

@@ -51,7 +51,7 @@ namespace boost { namespace leaf {
return this->try_catch_(
[&]
{
return context_base<E...>::try_handle_all( std::forward<TryBlock>(try_block), std::forward<H>(h)... );
return this->try_handle_all_( std::forward<TryBlock>(try_block), std::forward<H>(h)... );
},
std::forward<H>(h)...);
}
@@ -64,7 +64,7 @@ namespace boost { namespace leaf {
return this->try_catch_(
[&]
{
return context_base<E...>::remote_try_handle_all( std::forward<TryBlock>(try_block), std::forward<RemoteH>(h) );
return this->remote_try_handle_all_( std::forward<TryBlock>(try_block), std::forward<RemoteH>(h) );
},
std::forward<RemoteH>(h));
}
@@ -77,7 +77,7 @@ namespace boost { namespace leaf {
return this->try_catch_(
[&]
{
return context_base<E...>::try_handle_some( active_context, std::forward<TryBlock>(try_block), std::forward<H>(h)... );
return this->try_handle_some_( active_context, std::forward<TryBlock>(try_block), std::forward<H>(h)... );
},
std::forward<H>(h)...);
}
@@ -90,7 +90,7 @@ namespace boost { namespace leaf {
return this->try_catch_(
[&]
{
return context_base<E...>::remote_try_handle_some( active_context, std::forward<TryBlock>(try_block), std::forward<RemoteH>(h) );
return this->remote_try_handle_some_( active_context, std::forward<TryBlock>(try_block), std::forward<RemoteH>(h) );
},
std::forward<RemoteH>(h));
}