From d29f73e2d3d89f53e7901c725584e507278c873d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=20Dee=20=28J=C5=8Dshin=29?= Date: Wed, 19 Jun 2024 06:19:09 -0700 Subject: [PATCH] constexpr make_unique --- ctl/unique_ptr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctl/unique_ptr.h b/ctl/unique_ptr.h index c983d30e9..079f5a79f 100644 --- a/ctl/unique_ptr.h +++ b/ctl/unique_ptr.h @@ -144,14 +144,14 @@ struct unique_ptr }; template -unique_ptr +constexpr unique_ptr make_unique(Args&&... args) { return unique_ptr(new T(ctl::forward(args)...)); } template -unique_ptr +constexpr unique_ptr make_unique_for_overwrite() { #if 0