Skip to content

Commit

Permalink
Work around build issue
Browse files Browse the repository at this point in the history
I'm not sure why this build failure occurs... It seems to me that the
requisite `auto` should be resolvable by the time the table is used,
but since it seems it is not, we give the compiler a hint to nudge it
to the right answer.

Using fancier syntax to make my problems go away =)
  • Loading branch information
nathanielhourt committed Feb 7, 2023
1 parent 3b31af5 commit e401ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_contracts/explicit_nested_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CONTRACT explicit_nested_tests : public contract {
std::tuple<uint64_t, std::optional<float>, std::vector<int>> tup1;
std::variant<uint64_t, std::optional<std::pair<int, float>>, std::vector<int>> var1;
std::vector<std::vector<_mystruct>> vvmys;
auto primary_key() const { return id; }
auto primary_key() const -> decltype(id) { return id; }

EOSLIB_SERIALIZE(testdata, (id)(data)(data_vec)(data_vec2)(data_vec3)(tup1)(var1)(vvmys));
};
Expand Down

0 comments on commit e401ac8

Please # to comment.