Fix C++11 missing C++14's std::make_unique.

This commit is contained in:
Wilson Snyder 2023-09-01 18:07:15 -04:00
parent ed25aaaad9
commit 36932d31c4

View File

@ -2612,7 +2612,7 @@ void VerilatedContext::prepareClone() { delete m_threadPool.release(); }
VerilatedVirtualBase* VerilatedContext::threadPoolpOnClone() {
if (VL_UNLIKELY(m_threadPool)) m_threadPool.release();
m_threadPool = std::make_unique<VlThreadPool>(this, m_threads - 1);
m_threadPool = std::unique_ptr<VlThreadPool>(new VlThreadPool{this, m_threads - 1});
return m_threadPool.get();
}