Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Oct 18, 2023
1 parent 98c5d6a commit 7d7d1be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tgbot/bot.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#define TBGOT_TO_REQUEST_ARGUMENT_REQUEST_MACRO(f, ret) \
auto f(const f##Request &r) const { \
std::array<http_request_argument, boost::pfr::tuple_size<f##Request>> args; \
std::array<http_request_argument, boost::pfr::tuple_size<f##Request>::value> args; \
auto i = args.begin(); \
boost::pfr::for_each_field(r, [&]<auto I>(auto &&field, std::integral_constant<size_t, I>) { \
to_request_argument(i, boost::pfr::get_name<I, f##Request>(), field); \
Expand Down

0 comments on commit 7d7d1be

Please sign in to comment.