diff --git a/src/catch2/catch_translate_exception.hpp b/src/catch2/catch_translate_exception.hpp index 6053a10b..dfd95cd6 100644 --- a/src/catch2/catch_translate_exception.hpp +++ b/src/catch2/catch_translate_exception.hpp @@ -49,9 +49,7 @@ namespace Catch { template ExceptionTranslatorRegistrar( std::string(*translateFunction)( T const& ) ) { getMutableRegistryHub().registerTranslator( - Detail::unique_ptr( - new ExceptionTranslator( translateFunction ) - ) + Detail::make_unique>(translateFunction) ); } };