From 0a2cbcb4b73e6395c724c7f64528d37f50b8e822 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sat, 15 Oct 2022 11:05:22 +0200 Subject: [PATCH] Remove pre C++11 compatibility code for unique_ptr There is compatibility code that defines unique_ptr as auto_ptr if the C++ version is before C++11. But there are already other parts of the codebase that do require C++11 and the minimum required version to build the project is C++11. So remove the compat code as it is no longer needed. Signed-off-by: Lars-Peter Clausen --- net_func_eval.cc | 4 ---- pform_types.h | 8 -------- 2 files changed, 12 deletions(-) diff --git a/net_func_eval.cc b/net_func_eval.cc index 58b7d629d..278e17299 100644 --- a/net_func_eval.cc +++ b/net_func_eval.cc @@ -23,10 +23,6 @@ # include # include "ivl_assert.h" -#if __cplusplus < 201103L -#define unique_ptr auto_ptr -#endif - using namespace std; /* diff --git a/pform_types.h b/pform_types.h index 557b2a268..02a8a9e2a 100644 --- a/pform_types.h +++ b/pform_types.h @@ -33,10 +33,6 @@ # include # include -#if __cplusplus < 201103L -#define unique_ptr auto_ptr -#endif - /* * parse-form types. */ @@ -425,8 +421,4 @@ extern std::ostream& operator<< (std::ostream&out, const pform_name_t&); extern std::ostream& operator<< (std::ostream&out, const name_component_t&that); extern std::ostream& operator<< (std::ostream&out, const index_component_t&that); -#if __cplusplus < 201103L -#undef unique_ptr -#endif - #endif /* IVL_pform_types_H */