From 2de2e52dceed633d2fcae93897b5a5584be6bd7f Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Wed, 25 Dec 2024 23:37:03 -0800 Subject: [PATCH] Remove pre C++11 support C++14 is now required to build lutok. Remove all pre-C++11 oxbow code. Submitted by: Minsoo Choo Signed-off-by: Enji Cooper --- debug.hpp | 8 -------- state.hpp | 11 +---------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/debug.hpp b/debug.hpp index 6fc074d..6ada1fc 100644 --- a/debug.hpp +++ b/debug.hpp @@ -33,11 +33,7 @@ #define LUTOK_DEBUG_HPP #include -#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L #include -#else -#include -#endif namespace lutok { @@ -59,11 +55,7 @@ class debug { struct impl; /// Pointer to the shared internal implementation. -#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L std::shared_ptr< impl > _pimpl; -#else - std::tr1::shared_ptr< impl > _pimpl; -#endif public: debug(void); diff --git a/state.hpp b/state.hpp index 377aa06..3b088f1 100644 --- a/state.hpp +++ b/state.hpp @@ -32,13 +32,8 @@ #if !defined(LUTOK_STATE_HPP) #define LUTOK_STATE_HPP -#include - -#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L #include -#else -#include -#endif +#include namespace lutok { @@ -77,11 +72,7 @@ class state { struct impl; /// Pointer to the shared internal implementation. -#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L std::shared_ptr< impl > _pimpl; -#else - std::tr1::shared_ptr< impl > _pimpl; -#endif void* new_userdata_voidp(const size_t); void* to_userdata_voidp(const int);