Skip to content

Commit fa39717

Browse files
author
MarcoFalke
committed
util: Add missing types in make_secure_unique
1 parent 35000e3 commit fa39717

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/support/allocators/secure.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) 2009-2010 Satoshi Nakamoto
2-
// Copyright (c) 2009-2021 The Bitcoin Core developers
2+
// Copyright (c) 2009-present The Bitcoin Core developers
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

@@ -74,7 +74,7 @@ secure_unique_ptr<T> make_secure_unique(Args&&... as)
7474

7575
// initialize in place, and return as secure_unique_ptr
7676
try {
77-
return secure_unique_ptr<T>(new (p) T(std::forward(as)...));
77+
return secure_unique_ptr<T>(new (p) T(std::forward<Args>(as)...));
7878
} catch (...) {
7979
secure_allocator<T>().deallocate(p, 1);
8080
throw;

0 commit comments

Comments
 (0)