Skip to content

Commit

Permalink
Removed context_ptr (was deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
zajo committed Sep 3, 2024
1 parent fa378e6 commit bdfaede
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 314 deletions.
121 changes: 0 additions & 121 deletions include/boost/leaf/capture.hpp

This file was deleted.

20 changes: 0 additions & 20 deletions include/boost/leaf/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,26 +388,6 @@ BOOST_LEAF_CONSTEXPR inline context_type_from_handlers<H...> make_context( H &&
return { };
}

////////////////////////////////////////////

#if BOOST_LEAF_CFG_CAPTURE

template <class...>
BOOST_LEAF_DEPRECATED("Please use try_capture_all instead of make_shared_context/capture.")
inline context_ptr make_shared_context() noexcept
{
return std::make_shared<polymorphic_context>();
}

template <class... H>
BOOST_LEAF_DEPRECATED("Please use try_capture_all instead of make_shared_context/capture.")
inline context_ptr make_shared_context( H && ... ) noexcept
{
return std::make_shared<polymorphic_context>();
}

#endif

} }

#endif
1 change: 0 additions & 1 deletion include/boost/leaf/detail/all.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#include <boost/leaf/config.hpp>
#include <boost/leaf/capture.hpp>
#include <boost/leaf/common.hpp>
#include <boost/leaf/context.hpp>
#include <boost/leaf/diagnostics.hpp>
Expand Down
8 changes: 0 additions & 8 deletions include/boost/leaf/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
# include <system_error>
#endif

#if BOOST_LEAF_CFG_CAPTURE
# include <memory>
#endif

#define BOOST_LEAF_TOKEN_PASTE(x, y) x ## y
#define BOOST_LEAF_TOKEN_PASTE2(x, y) BOOST_LEAF_TOKEN_PASTE(x, y)
#define BOOST_LEAF_TMP BOOST_LEAF_TOKEN_PASTE2(boost_leaf_tmp_, __LINE__)
Expand Down Expand Up @@ -785,10 +781,6 @@ class polymorphic_context
{
};

#if BOOST_LEAF_CFG_CAPTURE
using context_ptr = std::shared_ptr<polymorphic_context>;
#endif

////////////////////////////////////////////

template <class Ctx>
Expand Down
1 change: 0 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ if option_enable_unit_tests
'capture_exception_result_unload_test',
'capture_exception_state_test',
'capture_exception_unload_test',
'capture_result_async_test_',
'capture_result_async_test',
'capture_result_state_test',
'capture_result_unload_test',
Expand Down
1 change: 0 additions & 1 deletion test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ run capture_exception_result_async_test.cpp ;
run capture_exception_result_unload_test.cpp ;
run capture_exception_state_test.cpp ;
run capture_exception_unload_test.cpp ;
run capture_result_async_test_.cpp ;
run capture_result_async_test.cpp ;
run capture_result_state_test.cpp ;
run capture_result_unload_test.cpp ;
Expand Down
162 changes: 0 additions & 162 deletions test/capture_result_async_test_.cpp

This file was deleted.

0 comments on commit bdfaede

Please sign in to comment.