Skip to content

Commit

Permalink
Remove pre C++11 support
Browse files Browse the repository at this point in the history
C++14 is now required to build lutok. Remove all pre-C++11 oxbow code.

Submitted by:	Minsoo Choo <minsoochoo0122@proton.me>
Signed-off-by:	Enji Cooper <ngie@FreeBSD.org>
  • Loading branch information
ngie-eign committed Dec 27, 2024
1 parent b66296e commit 2de2e52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
8 changes: 0 additions & 8 deletions debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@
#define LUTOK_DEBUG_HPP

#include <string>
#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
#include <memory>
#else
#include <tr1/memory>
#endif

namespace lutok {

Expand All @@ -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);
Expand Down
11 changes: 1 addition & 10 deletions state.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,8 @@
#if !defined(LUTOK_STATE_HPP)
#define LUTOK_STATE_HPP

#include <string>

#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
#include <memory>
#else
#include <tr1/memory>
#endif
#include <string>

namespace lutok {

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2de2e52

Please sign in to comment.