diff --git a/src/translator/definitions.h b/src/translator/definitions.h index bf1cb57..fe434e7 100644 --- a/src/translator/definitions.h +++ b/src/translator/definitions.h @@ -18,16 +18,16 @@ typedef AlignedVector AlignedMemory; /// Memory bundle for all byte-arrays. /// Can be a set/subset of model, shortlist, vocabs and ssplitPrefixFile bytes. struct MemoryBundle { - AlignedMemory model; ///< Byte-array of model (aligned to 256) - AlignedMemory shortlist; ///< Byte-array of shortlist (aligned to 64) + AlignedMemory model{}; ///< Byte-array of model (aligned to 256) + AlignedMemory shortlist{}; ///< Byte-array of shortlist (aligned to 64) /// Vector of vocabulary memories (aligned to 64). /// If two vocabularies are the same (based on the filenames), two entries (shared /// pointers) will be generated which share the same AlignedMemory object. - std::vector> vocabs; + std::vector> vocabs{}; /// @todo Not implemented yet - AlignedMemory ssplitPrefixFile; + AlignedMemory ssplitPrefixFile{}; }; } // namespace bergamot