We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35000e3 commit fa39717Copy full SHA for fa39717
src/support/allocators/secure.h
@@ -1,5 +1,5 @@
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
-// Copyright (c) 2009-2021 The Bitcoin Core developers
+// Copyright (c) 2009-present The Bitcoin Core developers
3
// Distributed under the MIT software license, see the accompanying
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
@@ -74,7 +74,7 @@ secure_unique_ptr<T> make_secure_unique(Args&&... as)
74
75
// initialize in place, and return as secure_unique_ptr
76
try {
77
- return secure_unique_ptr<T>(new (p) T(std::forward(as)...));
+ return secure_unique_ptr<T>(new (p) T(std::forward<Args>(as)...));
78
} catch (...) {
79
secure_allocator<T>().deallocate(p, 1);
80
throw;
0 commit comments