From 36932d31c4ec19e9b0aac93275af8b166a083389 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 1 Sep 2023 18:07:15 -0400 Subject: [PATCH] Fix C++11 missing C++14's std::make_unique. --- include/verilated.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/verilated.cpp b/include/verilated.cpp index a1718a408..41a1df170 100644 --- a/include/verilated.cpp +++ b/include/verilated.cpp @@ -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(this, m_threads - 1); + m_threadPool = std::unique_ptr(new VlThreadPool{this, m_threads - 1}); return m_threadPool.get(); }