workaround a visualstudio 2013 issue.
[ci skip]
This commit is contained in:
parent
7c3e84a564
commit
e0e26c8520
1 changed files with 5 additions and 2 deletions
|
@ -174,10 +174,13 @@ public:
|
|||
|
||||
wesnothd_connection_ptr(const wesnothd_connection_ptr&) = delete;
|
||||
wesnothd_connection_ptr& operator=(const wesnothd_connection_ptr&) = delete;
|
||||
|
||||
#if defined(_MSC_VER) &&_MSC_VER == 1800
|
||||
wesnothd_connection_ptr(wesnothd_connection_ptr&& other) : ptr_(std::move(other.ptr_)) {}
|
||||
wesnothd_connection_ptr& operator=(wesnothd_connection_ptr&& other) { ptr_ = std::move(other.ptr_); return *this; }
|
||||
#else
|
||||
wesnothd_connection_ptr(wesnothd_connection_ptr&&) = default;
|
||||
wesnothd_connection_ptr& operator=(wesnothd_connection_ptr&&);
|
||||
|
||||
#endif
|
||||
~wesnothd_connection_ptr();
|
||||
|
||||
explicit operator bool() const {
|
||||
|
|
Loading…
Add table
Reference in a new issue