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 <lars@metafoo.de>
This commit is contained in:
parent
4522709c06
commit
0a2cbcb4b7
|
|
@ -23,10 +23,6 @@
|
||||||
# include <typeinfo>
|
# include <typeinfo>
|
||||||
# include "ivl_assert.h"
|
# include "ivl_assert.h"
|
||||||
|
|
||||||
#if __cplusplus < 201103L
|
|
||||||
#define unique_ptr auto_ptr
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -33,10 +33,6 @@
|
||||||
# include <map>
|
# include <map>
|
||||||
# include <memory>
|
# include <memory>
|
||||||
|
|
||||||
#if __cplusplus < 201103L
|
|
||||||
#define unique_ptr auto_ptr
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* parse-form types.
|
* 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 name_component_t&that);
|
||||||
extern std::ostream& operator<< (std::ostream&out, const index_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 */
|
#endif /* IVL_pform_types_H */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue