Storage, NetworkConnection: Don't in-place construct atomics.

Visual C++ 2013 doesn't support this.
This commit is contained in:
Peter Johnson
2015-07-20 20:52:26 -07:00
parent 8bbe5f9fdb
commit 0979c1c9ca
2 changed files with 5 additions and 4 deletions

View File

@@ -17,9 +17,10 @@ using namespace nt;
NetworkConnection::NetworkConnection(std::unique_ptr<TCPStream> stream,
Message::GetEntryTypeFunc get_entry_type)
: m_stream(std::move(stream)),
m_get_entry_type(get_entry_type),
m_active(false),
m_proto_rev(0x0300) {}
m_get_entry_type(get_entry_type) {
m_active = false;
m_proto_rev = 0x0300;
}
NetworkConnection::~NetworkConnection() { Stop(); }