Skip to content

Commit

Permalink
Made Dict and DictObject to have public Serialize() and SerializeStub…
Browse files Browse the repository at this point in the history
…() methods.
  • Loading branch information
nseam authored and kenorb committed May 22, 2023
1 parent 14c4309 commit d8d5a5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dict.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ class Dict : public DictBase<K, V> {
}

public:
#ifdef __MQL__
template <>
#endif
SerializerNodeType Serialize(Serializer& s) {
if (s.IsWriting()) {
for (DictIteratorBase<K, V> i(Begin()); i.IsValid(); ++i) {
Expand Down
3 changes: 3 additions & 0 deletions DictObject.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,10 @@ class DictObject : public DictBase<K, V> {
return true;
}

public:
#ifdef __MQL__
template <>
#endif
SerializerNodeType Serialize(Serializer& s) {
if (s.IsWriting()) {
for (DictIteratorBase<K, V> i(Begin()); i.IsValid(); ++i)
Expand Down

0 comments on commit d8d5a5b

Please sign in to comment.