We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3050b77 commit e359c16Copy full SHA for e359c16
src/cbor/CborDecoder.h
@@ -9,7 +9,7 @@
9
*/
10
#pragma once
11
12
-#include <map>
+#include <unordered_map>
13
#include "../interfaces/Decoder.h"
14
#include "CBOR.h"
15
#include "../interfaces/message.h"
@@ -51,8 +51,7 @@ class CBORMessageDecoderSingleton: public Decoder {
51
private:
52
CBORMessageDecoderSingleton() {}
53
54
- static CBORMessageDecoderSingleton singleton;
55
- std::map<CBORTag, CBORMessageDecoderInterface*> decoders;
+ std::unordered_map<CBORTag, CBORMessageDecoderInterface*> decoders;
56
};
57
58
class CBORMessageDecoder: public Decoder {
0 commit comments