Skip to content

Commit

Permalink
Update akchilov2.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
AzrBrk authored Dec 30, 2023
1 parent 0fba696 commit c23e80c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/群友提交/第10题/akchilov2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ template<class T, class F, size_t ...I> void for_each_member_impl(T&& t, F&& f,
{
//有点上帝视角了,因为已经看到了所有的数据类型
using possible_types = tl<int, std::string, double>;
offset_pointer<8, T, possible_types> op{ t };
offset_pointer<alignof(T), T, possible_types> op{ t };
(f(op.get<I>()), ...);
}

Expand Down

0 comments on commit c23e80c

Please sign in to comment.