Skip to content
This repository was archived by the owner on Nov 24, 2022. It is now read-only.

Commit 0c10b5a

Browse files
committed
🐛 gcc-9 singleton warning
1 parent 8497c2b commit 0c10b5a

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

include/texugo/com/ConnectionManager.hpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class ConnectionManager
1515
ConnectionManager& operator=(const ConnectionManager& other) noexcept = delete;
1616
ConnectionManager& operator=(ConnectionManager&& other) noexcept = delete;
1717

18-
void createConnections(const std::unordered_map<std::string, std::string>& receiverAddresses,
19-
const std::unordered_map<std::string, std::string>& senderAddresses);
18+
void createConnections(const std::unordered_map<std::string, std::string>&,
19+
const std::unordered_map<std::string, std::string>&);
2020
void startConnections();
2121
void insertConnectionQueue(const std::string&, const std::string&);
2222

@@ -31,17 +31,12 @@ class ConnectionManager
3131
SENDER
3232
};
3333

34-
void createReceiverConnections(const std::unordered_map<std::string, std::string>&);
35-
void createSenderConnections(const std::unordered_map<std::string, std::string>&);
36-
3734
void createConnection(const std::unordered_map<std::string, std::string>&, CONNECTION_TYPE);
3835
void openReceiverConnections();
3936

40-
boost::asio::io_service m_ioService;
41-
42-
37+
inline static boost::asio::io_service m_ioService;
4338
inline static std::unordered_map<std::string, std::unique_ptr<ReceiverConnection>>
4439
m_receiverConnections;
4540
inline static std::unordered_map<std::string, std::unique_ptr<SenderConnection>>
4641
m_senderConnections;
47-
};
42+
};

0 commit comments

Comments
 (0)