Skip to content

Commit 26c79ec

Browse files
Minor improvements
1 parent bec2330 commit 26c79ec

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/rfl/yas/Reader.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

include/rfl/yas/Writer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

include/rfl/yas/write.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
4141
template <class... Ps>
4242
std::ostream& write(const auto& _obj, std::ostream& _stream) {
4343
::yas::mem_ostream os;

0 commit comments

Comments
 (0)