Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core_tests: fix gcc7 compilation #9044

Merged
merged 1 commit into from
Nov 6, 2023
Merged

Conversation

selsta
Copy link
Collaborator

@selsta selsta commented Oct 28, 2023

Reported by @Gingeropolous

/home/user/monero/tests/core_tests/wallet_tools.cpp:42:86: error: call of overloaded ‘process_transactions(boost::assign_detail::generic_list<tools::wallet2*>, const std::vector<boost::variant<cryptonote::block, cryptonote::transaction, std::vector<cryptonote::transaction, std::allocator<cryptonote::transaction> >, cryptonote::account_base, callback_entry, serialized_object<cryptonote::block>, serialized_object<cryptonote::transaction>, event_visitor_settings, event_replay_settings> >&, const cryptonote::block&, block_tracker&, const boost::optional<crypto::hash>&)’ is ambiguous
   process_transactions(boost::assign::list_of(wallet), events, blk_head, bt, blk_tail);
                                                                                      ^
/home/user/monero/tests/core_tests/wallet_tools.cpp:40:6: note: candidate: static void wallet_tools::process_transactions(tools::wallet2*, const std::vector<boost::variant<cryptonote::block, cryptonote::transaction, std::vector<cryptonote::transaction, std::allocator<cryptonote::transaction> >, cryptonote::account_base, callback_entry, serialized_object<cryptonote::block>, serialized_object<cryptonote::transaction>, event_visitor_settings, event_replay_settings> >&, const cryptonote::block&, block_tracker&, const boost::optional<crypto::hash>&)
 void wallet_tools::process_transactions(tools::wallet2 * wallet, const std::vector<test_event_entry>& events, const cryptonote::block& blk_head, block_tracker &bt, const boost::optional<crypto::hash>& blk_tail)
      ^~~~~~~~~~~~
In file included from /home/user/monero/tests/core_tests/wallet_tools.cpp:5:0:
/home/user/monero/tests/core_tests/wallet_tools.h:75:15: note: candidate: static void wallet_tools::process_transactions(const std::vector<tools::wallet2*>&, const std::vector<boost::variant<cryptonote::block, cryptonote::transaction, std::vector<cryptonote::transaction, std::allocator<cryptonote::transaction> >, cryptonote::account_base, callback_entry, serialized_object<cryptonote::block>, serialized_object<cryptonote::transaction>, event_visitor_settings, event_replay_settings> >&, const cryptonote::block&, block_tracker&, const boost::optional<crypto::hash>&)
   static void process_transactions(const std::vector<tools::wallet2*>& wallets, const std::vector<test_event_entry>& events, const cryptonote::block& blk_head, block_tracker &bt, const boost::optional<crypto::hash>& blk_tail=boost::none);
               ^~~~~~~~~~~~~~~~~~~~
/home/user/monero/tests/core_tests/wallet_tools.cpp: In static member function ‘static void wallet_tools::process_transactions(tools::wallet2*, const std::vector<const cryptonote::block*>&, const map_hash2tx_t&, block_tracker&)’:
/home/user/monero/tests/core_tests/wallet_tools.cpp:59:75: error: call of overloaded ‘process_transactions(boost::assign_detail::generic_list<tools::wallet2*>, const std::vector<const cryptonote::block*>&, const map_hash2tx_t&, block_tracker&)’ is ambiguous
   process_transactions(boost::assign::list_of(wallet), blockchain, mtx, bt);
                                                                           ^
/home/user/monero/tests/core_tests/wallet_tools.cpp:58:6: note: candidate: static void wallet_tools::process_transactions(tools::wallet2*, const std::vector<const cryptonote::block*>&, const map_hash2tx_t&, block_tracker&)
 void wallet_tools::process_transactions(tools::wallet2 * wallet, const std::vector<const cryptonote::block*>& blockchain, const map_hash2tx_t & mtx, block_tracker &bt){
      ^~~~~~~~~~~~
In file included from /home/user/monero/tests/core_tests/wallet_tools.cpp:5:0:
/home/user/monero/tests/core_tests/wallet_tools.h:77:15: note: candidate: static void wallet_tools::process_transactions(const std::vector<tools::wallet2*>&, const std::vector<const cryptonote::block*>&, const map_hash2tx_t&, block_tracker&)
   static void process_transactions(const std::vector<tools::wallet2*>& wallets, const std::vector<const cryptonote::block*>& blockchain, const map_hash2tx_t & mtx, block_tracker &bt);
               ^~~~~~~~~~~~~~~~~~~~

@selsta
Copy link
Collaborator Author

selsta commented Oct 28, 2023

@vtnerd force pushed to remove the boost header

@luigi1111 luigi1111 merged commit b0ea37a into monero-project:master Nov 6, 2023
18 checks passed
@selsta selsta deleted the gcc7-fix branch February 20, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants