File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ struct Reader {
120120 std::optional<Error> read_object (const ObjectReader& _object_reader,
121121 const InputObjectType& _obj) const noexcept {
122122 try {
123- for (size_t i = 0 ; i < ObjectReader::size (); ++i) {
123+ for (std:: size_t i = 0 ; i < ObjectReader::size (); ++i) {
124124 _object_reader.read (i, InputVarType{_obj.ar });
125125 }
126126 return std::nullopt ;
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ struct Writer {
172172 template <class T >
173173 OutputVarType add_value_to_union (const size_t _index, const T& _var,
174174 OutputUnionType* _parent) const {
175- (*ar_)( _index) ;
175+ (*ar_) & _index;
176176 add_value (_var);
177177 return OutputVarType{};
178178 }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ std::vector<char> write(const auto& _obj) {
3737 return std::vector<char >(buf.data , buf.data + buf.size );
3838}
3939
40- // / Writes Cereal binary format into an ostream.
40+ // / Writes yas binary format into an ostream.
4141template <class ... Ps>
4242std::ostream& write (const auto & _obj, std::ostream& _stream) {
4343 ::yas::mem_ostream os;
You can’t perform that action at this time.
0 commit comments