mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix auto_ptr workaround
This commit is contained in:
parent
9cc597fcbe
commit
aefc564640
3 changed files with 150 additions and 7 deletions
|
@ -10,7 +10,6 @@
|
|||
|
||||
#include <memory>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/detail/predef.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
|
@ -22,7 +21,7 @@ namespace sprout {
|
|||
return p;
|
||||
}
|
||||
|
||||
#if !SPROUT_CLANG_OR_LATER(5, 0, 0) || (_LIBCPP_STD_VER <= 14 || defined(_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR))
|
||||
#if !defined(SPROUT_NO_AUTO_PTR)
|
||||
template<typename T>
|
||||
inline SPROUT_NON_CONSTEXPR T*
|
||||
get_pointer(std::auto_ptr<T> const& p) SPROUT_NOEXCEPT {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue