Skip to content

Commit 19c1df1

Browse files
committed
Always expect compiler to use at least C++11
1 parent 7195e59 commit 19c1df1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/osg/ref_ptr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ class ref_ptr
3636
ref_ptr() : _ptr(0) {}
3737
ref_ptr(T* ptr) : _ptr(ptr) { if (_ptr) _ptr->ref(); }
3838
ref_ptr(const ref_ptr& rp) : _ptr(rp._ptr) { if (_ptr) _ptr->ref(); }
39-
#if __cplusplus >= 201103L
4039
ref_ptr(ref_ptr&& rp) noexcept : _ptr(rp._ptr) { rp._ptr = 0; }
41-
#endif
4240
template<class Other> ref_ptr(const ref_ptr<Other>& rp) : _ptr(rp._ptr) { if (_ptr) _ptr->ref(); }
4341
ref_ptr(observer_ptr<T>& optr) : _ptr(0) { optr.lock(*this); }
4442
~ref_ptr() { if (_ptr) _ptr->unref(); _ptr = 0; }
@@ -55,7 +53,6 @@ class ref_ptr
5553
return *this;
5654
}
5755

58-
#if __cplusplus >= 201103L
5956
template<class Other> ref_ptr& operator = (ref_ptr<Other>&& rp)
6057
{
6158
if (_ptr == rp._ptr) return *this;
@@ -64,7 +61,6 @@ class ref_ptr
6461
rp._ptr = nullptr;
6562
return *this;
6663
}
67-
#endif
6864

6965
inline ref_ptr& operator = (T* ptr)
7066
{

0 commit comments

Comments
 (0)