mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
parent
9c4151cb0f
commit
f57a3f9cde
@ -34,6 +34,7 @@ using namespace std;
|
||||
#define ALWAYS_INLINE inline
|
||||
#define TYPENAME typename
|
||||
#define CONSTEXPR constexpr
|
||||
#define ALWAYS_INLINE_CONSTEXPR constexpr
|
||||
#define NOEXCEPT noexcept
|
||||
#define FINAL final
|
||||
#define OVERRIDE override
|
||||
@ -231,6 +232,9 @@ template<class T> typename remove_reference<T>::type &&move(T &&t) {
|
||||
// Fallbacks if features are not supported
|
||||
#ifndef CONSTEXPR
|
||||
# define CONSTEXPR INLINE
|
||||
# define ALWAYS_INLINE_CONSTEXPR ALWAYS_INLINE
|
||||
#else
|
||||
# define ALWAYS_INLINE_CONSTEXPR ALWAYS_INLINE CONSTEXPR
|
||||
#endif
|
||||
#ifndef NOEXCEPT
|
||||
# define NOEXCEPT
|
||||
|
@ -70,7 +70,7 @@ class PointerTo : public PointerToBase<T> {
|
||||
public:
|
||||
typedef TYPENAME PointerToBase<T>::To To;
|
||||
PUBLISHED:
|
||||
ALWAYS_INLINE CONSTEXPR PointerTo() NOEXCEPT DEFAULT_CTOR;
|
||||
ALWAYS_INLINE_CONSTEXPR PointerTo() NOEXCEPT DEFAULT_CTOR;
|
||||
ALWAYS_INLINE PointerTo(To *ptr) NOEXCEPT;
|
||||
INLINE PointerTo(const PointerTo<T> ©);
|
||||
|
||||
@ -133,7 +133,7 @@ class ConstPointerTo : public PointerToBase<T> {
|
||||
public:
|
||||
typedef TYPENAME PointerToBase<T>::To To;
|
||||
PUBLISHED:
|
||||
ALWAYS_INLINE CONSTEXPR ConstPointerTo() NOEXCEPT DEFAULT_CTOR;
|
||||
ALWAYS_INLINE_CONSTEXPR ConstPointerTo() NOEXCEPT DEFAULT_CTOR;
|
||||
ALWAYS_INLINE ConstPointerTo(const To *ptr) NOEXCEPT;
|
||||
INLINE ConstPointerTo(const PointerTo<T> ©);
|
||||
INLINE ConstPointerTo(const ConstPointerTo<T> ©);
|
||||
|
@ -31,7 +31,7 @@ public:
|
||||
typedef T To;
|
||||
|
||||
protected:
|
||||
ALWAYS_INLINE CONSTEXPR PointerToBase() NOEXCEPT DEFAULT_CTOR;
|
||||
ALWAYS_INLINE_CONSTEXPR PointerToBase() NOEXCEPT DEFAULT_CTOR;
|
||||
INLINE PointerToBase(To *ptr);
|
||||
INLINE PointerToBase(const PointerToBase<T> ©);
|
||||
INLINE ~PointerToBase();
|
||||
|
Loading…
x
Reference in New Issue
Block a user