From 9b03f879e356bbf54b2f80177bca7398b2e76fde Mon Sep 17 00:00:00 2001 From: greg7mdp Date: Mon, 25 Nov 2024 10:43:59 -0500 Subject: [PATCH] cleanup warnings (`warning: unqualified call to 'std::forward'`) --- include/fc/crypto/common.hpp | 2 +- include/fc/crypto/private_key.hpp | 2 +- include/fc/crypto/public_key.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fc/crypto/common.hpp b/include/fc/crypto/common.hpp index 2be0f4d..6b0f20e 100644 --- a/include/fc/crypto/common.hpp +++ b/include/fc/crypto/common.hpp @@ -178,7 +178,7 @@ namespace fc { namespace crypto { {} shim(data_type&& data) - :_data(forward(data)) + :_data(std::forward(data)) {} shim(const data_type& data) diff --git a/include/fc/crypto/private_key.hpp b/include/fc/crypto/private_key.hpp index 505bf3d..7b229ea 100644 --- a/include/fc/crypto/private_key.hpp +++ b/include/fc/crypto/private_key.hpp @@ -53,7 +53,7 @@ namespace fc { namespace crypto { storage_type _storage; private_key( storage_type&& other_storage ) - :_storage(forward(other_storage)) + :_storage(std::forward(other_storage)) {} friend bool operator == ( const private_key& p1, const private_key& p2); diff --git a/include/fc/crypto/public_key.hpp b/include/fc/crypto/public_key.hpp index 00bfb5a..fbffe01 100644 --- a/include/fc/crypto/public_key.hpp +++ b/include/fc/crypto/public_key.hpp @@ -31,7 +31,7 @@ namespace fc { namespace crypto { public_key( const signature& c, const sha256& digest, bool check_canonical = true ); public_key( storage_type&& other_storage ) - :_storage(forward(other_storage)) + :_storage(std::forward(other_storage)) {} bool valid()const;