From 3485d33798ae6ee80cc9d45022a7beac7a37c97f Mon Sep 17 00:00:00 2001 From: Nathaniel Date: Tue, 7 Feb 2023 12:29:39 -0600 Subject: [PATCH] Work around build issue 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 =) --- tests/unit/test_contracts/explicit_nested_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_contracts/explicit_nested_tests.cpp b/tests/unit/test_contracts/explicit_nested_tests.cpp index 7febcab6aa..37b290d90e 100644 --- a/tests/unit/test_contracts/explicit_nested_tests.cpp +++ b/tests/unit/test_contracts/explicit_nested_tests.cpp @@ -32,7 +32,7 @@ CONTRACT explicit_nested_tests : public contract { std::tuple, std::vector> tup1; std::variant>, std::vector> var1; std::vector> 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)); };