# HG changeset patch # User Chris Cannam # Date 1593169993 -3600 # Node ID 38be2fa29efdec4d5e45b81b7fb801535f160f3a # Parent b504df98c3be446f7ff04f9b1a9748017b526e85 We need to be c++11 compatible here, and make_unique isn't in it diff -r b504df98c3be -r 38be2fa29efd base/Debug.cpp --- a/base/Debug.cpp Fri Jun 26 11:45:39 2020 +0100 +++ b/base/Debug.cpp Fri Jun 26 12:13:13 2020 +0100 @@ -32,7 +32,7 @@ SVDebug &getSVDebug() { mutex.lock(); if (!svdebug) { - svdebug = std::make_unique(); + svdebug = std::unique_ptr(new SVDebug()); } mutex.unlock(); return *svdebug; @@ -42,9 +42,9 @@ mutex.lock(); if (!svcerr) { if (!svdebug) { - svdebug = std::make_unique(); + svdebug = std::unique_ptr(new SVDebug()); } - svcerr = std::make_unique(*svdebug); + svcerr = std::unique_ptr(new SVCerr(*svdebug)); } mutex.unlock(); return *svcerr;