mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Storage, NetworkConnection: Don't in-place construct atomics.
Visual C++ 2013 doesn't support this.
This commit is contained in:
@@ -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(); }
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class StorageTest;
|
||||
|
||||
class StorageEntry {
|
||||
public:
|
||||
StorageEntry() : m_flags(0), m_id(0xffff) {}
|
||||
StorageEntry() : m_id(0xffff) { m_flags = 0; }
|
||||
|
||||
bool IsPersistent() const { return (m_flags & NT_PERSISTENT) != 0; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user