mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 13:19:51 -05:00
Retire std::auto_ptr and its macro CM_AUTO_PTR
Signed-off-by: Matthias Maennich <matthias@maennich.net>
This commit is contained in:
@@ -5,12 +5,11 @@
|
||||
|
||||
#include "cmConfigure.h" // IWYU pragma: keep
|
||||
|
||||
#include <memory> // IWYU pragma: keep
|
||||
#include <stddef.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "cm_auto_ptr.hxx"
|
||||
|
||||
/**
|
||||
* @brief Abstract base class for cryptographic hash generators
|
||||
*/
|
||||
@@ -42,7 +41,7 @@ public:
|
||||
/// SHA3_224, SHA3_256, SHA3_384, SHA3_512
|
||||
/// @return A valid auto pointer if algo is supported or
|
||||
/// an invalid/NULL pointer otherwise
|
||||
static CM_AUTO_PTR<cmCryptoHash> New(const char* algo);
|
||||
static std::unique_ptr<cmCryptoHash> New(const char* algo);
|
||||
|
||||
/// @brief Converts a hex character to its binary value (4 bits)
|
||||
/// @arg input Hex character [0-9a-fA-F].
|
||||
|
||||
Reference in New Issue
Block a user