Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Aug 26, 2024
1 parent 9878051 commit 332d63a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion example/json_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ inline char* to_chars_float(T value, char* buffer) {
#include <iguana/json_reader.hpp>
#include <iguana/json_writer.hpp>


namespace client {
struct person {
std::string name;
Expand Down
4 changes: 2 additions & 2 deletions iguana/ylt/reflection/member_value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ inline constexpr void for_each(T&& t, Visit&& func) {
}
(std::make_index_sequence<sizeof...(args)>{});
#else
visit_members_impl0<T>(std::forward<Visit>(func), std::make_index_sequence<sizeof...(args)>{}, args...);
visit_members_impl0<T>(std::forward<Visit>(func), std::make_index_sequence<sizeof...(args)>{}, args...);
#endif
});
}
Expand All @@ -249,7 +249,7 @@ inline constexpr void for_each(T&& t, Visit&& func) {
}
(std::make_index_sequence<sizeof...(args)>{});
#else
visit_members_impl<T>(std::forward<Visit>(func), std::make_index_sequence<sizeof...(args)>{}, args...);
visit_members_impl<T>(std::forward<Visit>(func), std::make_index_sequence<sizeof...(args)>{}, args...);
#endif
});
}
Expand Down
4 changes: 3 additions & 1 deletion test/test_pb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ struct test_pb_st6 {
};
REFLECTION(test_pb_st6, x, y);

struct pair_t : public iguana::base_impl<pair_t> {
struct pair_t
: public iguana::base_impl<pair_t, iguana::ENABLE_XML | iguana::ENABLE_PB |
iguana::ENABLE_YAML> {
pair_t() = default;
pair_t(int a, int b) : x(a), y(b) {}
int x;
Expand Down

0 comments on commit 332d63a

Please sign in to comment.