Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/svm/enhanced_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class EnhancedExecutionEngine : public ExecutionEngine {
~ThreadPool();

template<typename F>
auto enqueue(F&& f) -> std::future<typename std::result_of<F()>::type>;
auto enqueue(F&& f) -> std::future<typename std::invoke_result_t<F>>;

void shutdown();

Expand Down
4 changes: 2 additions & 2 deletions src/svm/enhanced_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ EnhancedExecutionEngine::ThreadPool::~ThreadPool() {

template<typename F>
auto EnhancedExecutionEngine::ThreadPool::enqueue(F&& f)
-> std::future<typename std::result_of<F()>::type> {
-> std::future<typename std::invoke_result_t<F>> {

using return_type = typename std::result_of<F()>::type;
using return_type = typename std::invoke_result_t<F>;

auto task = std::make_shared<std::packaged_task<return_type()>>(
std::forward<F>(f)
Expand Down
2 changes: 1 addition & 1 deletion src/svm/spl_programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ ExecutionOutcome ExtendedSystemProgram::handle_initialize_nonce(
ProgramAccount& nonce_account = context.accounts[nonce_account_key];
nonce_account.program_id = EXTENDED_SYSTEM_PROGRAM_ID;
nonce_account.executable = false;
nonce_account.lamports = std::max(nonce_account.lamports, 1447680UL); // Rent-exempt
nonce_account.lamports = std::max(nonce_account.lamports, static_cast<Lamports>(1447680UL)); // Rent-exempt
nonce_account.rent_epoch = context.current_epoch;

// Initialize nonce account data
Expand Down
34 changes: 0 additions & 34 deletions test_rpc_simple.cpp

This file was deleted.

251 changes: 0 additions & 251 deletions test_solana_mcp.cpp

This file was deleted.