diff options
Diffstat (limited to 'compat/borrowed-ptr-fwd.hpp')
| -rw-r--r-- | compat/borrowed-ptr-fwd.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/compat/borrowed-ptr-fwd.hpp b/compat/borrowed-ptr-fwd.hpp index 8fcc5dde..48c3e141 100644 --- a/compat/borrowed-ptr-fwd.hpp +++ b/compat/borrowed-ptr-fwd.hpp @@ -2,12 +2,18 @@ namespace floormat { +#define FM_BPTR_DEBUG +//#define FM_NO_WEAK_BPTR + struct bptr_base; template<typename T> class bptr; template<typename T> class weak_bptr; template<typename T> bptr(T* ptr) -> bptr<T>; -template<typename T> bptr(const T* ptr) -> bptr<const T>; + +#ifndef FM_NO_WEAK_BPTR +template<typename T> weak_bptr(const bptr<T>& ptr) -> weak_bptr<T>; +#endif } // namespace floormat |
