Skip to content

Commit 4f1e47a

Browse files
author
Dainis Jonitis
committed
No need for MSGPACK_USE_CPP03 checks in c++11 specific file
1 parent 7a131db commit 4f1e47a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/msgpack/detail/cpp11_zone.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class zone {
9797

9898
++m_tail;
9999
}
100-
#if !defined(MSGPACK_USE_CPP03)
101100
finalizer_array(finalizer_array&& other) noexcept
102101
:m_tail(other.m_tail), m_end(other.m_end), m_array(other.m_array)
103102
{
@@ -111,7 +110,7 @@ class zone {
111110
new (this) finalizer_array(std::move(other));
112111
return *this;
113112
}
114-
#endif
113+
115114
finalizer* m_tail;
116115
finalizer* m_end;
117116
finalizer* m_array;
@@ -162,7 +161,6 @@ class zone {
162161
m_free = chunk_size;
163162
m_ptr = reinterpret_cast<char*>(m_head) + sizeof(chunk);
164163
}
165-
#if !defined(MSGPACK_USE_CPP03)
166164
chunk_list(chunk_list&& other) noexcept
167165
:m_free(other.m_free), m_ptr(other.m_ptr), m_head(other.m_head)
168166
{
@@ -174,7 +172,7 @@ class zone {
174172
new (this) chunk_list(std::move(other));
175173
return *this;
176174
}
177-
#endif
175+
178176
size_t m_free;
179177
char* m_ptr;
180178
chunk* m_head;

0 commit comments

Comments
 (0)