diff --git a/src/init.cpp b/src/init.cpp --- a/src/init.cpp +++ b/src/init.cpp @@ -2131,7 +2131,7 @@ } threadGroup.create_thread( - boost::bind(&ThreadImport, boost::ref(config), vImportFiles)); + boost::bind(&ThreadImport, std::ref(config), vImportFiles)); // Wait for genesis block to be processed { diff --git a/src/test/scheduler_tests.cpp b/src/test/scheduler_tests.cpp --- a/src/test/scheduler_tests.cpp +++ b/src/test/scheduler_tests.cpp @@ -26,8 +26,8 @@ boost::chrono::system_clock::time_point::min(); if (rescheduleTime != noTime) { CScheduler::Function f = - boost::bind(µTask, boost::ref(s), boost::ref(mutex), - boost::ref(counter), -delta + 1, noTime); + boost::bind(µTask, std::ref(s), std::ref(mutex), + std::ref(counter), -delta + 1, noTime); s.schedule(f, rescheduleTime); } } @@ -77,9 +77,9 @@ now + boost::chrono::microseconds(500 + randomMsec(rng)); int whichCounter = zeroToNine(rng); CScheduler::Function f = boost::bind( - µTask, boost::ref(microTasks), - boost::ref(counterMutex[whichCounter]), - boost::ref(counter[whichCounter]), randomDelta(rng), tReschedule); + µTask, std::ref(microTasks), + std::ref(counterMutex[whichCounter]), + std::ref(counter[whichCounter]), randomDelta(rng), tReschedule); microTasks.schedule(f, t); } nTasks = microTasks.getQueueInfo(first, last); @@ -108,9 +108,9 @@ now + boost::chrono::microseconds(500 + randomMsec(rng)); int whichCounter = zeroToNine(rng); CScheduler::Function f = boost::bind( - µTask, boost::ref(microTasks), - boost::ref(counterMutex[whichCounter]), - boost::ref(counter[whichCounter]), randomDelta(rng), tReschedule); + µTask, std::ref(microTasks), + std::ref(counterMutex[whichCounter]), + std::ref(counter[whichCounter]), randomDelta(rng), tReschedule); microTasks.schedule(f, t); }