1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

workaround for clang 5.0.0 C++17 mode (nothing auto_ptr)

This commit is contained in:
bolero-MURAKAMI 2017-09-20 13:37:04 +09:00
parent 310731de9a
commit a47fadcc5a
2 changed files with 4 additions and 2 deletions

View file

@ -21,11 +21,13 @@ namespace sprout {
return p;
}
#if !SPROUT_CLANG_OR_LATER(5, 0, 0) || (_LIBCPP_STD_VER <= 14 || defined(_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR))
template<typename T>
inline SPROUT_NON_CONSTEXPR T*
get_pointer(std::auto_ptr<T> const& p) SPROUT_NOEXCEPT {
return p.get();
}
#endif
#if !defined(SPROUT_NO_CXX11_SMART_PTR)
template<typename T>