diff --git a/pe-packer/pe-packer.vcxproj b/pe-packer/pe-packer.vcxproj
index b1473c7..7983d47 100644
--- a/pe-packer/pe-packer.vcxproj
+++ b/pe-packer/pe-packer.vcxproj
@@ -65,7 +65,7 @@
true
true
MultiThreaded
- stdcpp14
+ stdcpp20
Console
diff --git a/pe-packer/pe_lib/pe_properties.h b/pe-packer/pe_lib/pe_properties.h
index b10d803..0ee65c0 100644
--- a/pe-packer/pe_lib/pe_properties.h
+++ b/pe-packer/pe_lib/pe_properties.h
@@ -7,7 +7,7 @@ namespace pe_bliss
class pe_properties
{
public: //Constructors
- virtual std::auto_ptr duplicate() const = 0;
+ virtual std::unique_ptr duplicate() const = 0;
//Fills properly PE structures
virtual void create_pe(uint32_t section_alignment, uint16_t subsystem) = 0;
diff --git a/pe-packer/pe_lib/pe_properties_generic.cpp b/pe-packer/pe_lib/pe_properties_generic.cpp
index 3b1dadd..02075cd 100644
--- a/pe-packer/pe_lib/pe_properties_generic.cpp
+++ b/pe-packer/pe_lib/pe_properties_generic.cpp
@@ -9,9 +9,9 @@ using namespace pe_win;
//Constructor
template
-std::auto_ptr pe_properties_generic::duplicate() const
+std::unique_ptr pe_properties_generic::duplicate() const
{
- return std::auto_ptr(new pe_properties_generic(*this));
+ return std::unique_ptr(new pe_properties_generic(*this));
}
//Fills properly PE structures
diff --git a/pe-packer/pe_lib/pe_properties_generic.h b/pe-packer/pe_lib/pe_properties_generic.h
index 2b4a0e3..9b53ec2 100644
--- a/pe-packer/pe_lib/pe_properties_generic.h
+++ b/pe-packer/pe_lib/pe_properties_generic.h
@@ -30,7 +30,7 @@ template
class pe_properties_generic : public pe_properties
{
public: //Constructor
- virtual std::auto_ptr duplicate() const;
+ virtual std::unique_ptr duplicate() const;
//Fills properly PE structures
virtual void create_pe(uint32_t section_alignment, uint16_t subsystem);
diff --git a/pe-packer/pe_lib/resource_cursor_icon_writer.cpp b/pe-packer/pe_lib/resource_cursor_icon_writer.cpp
index ce52c6c..44bb571 100644
--- a/pe-packer/pe_lib/resource_cursor_icon_writer.cpp
+++ b/pe-packer/pe_lib/resource_cursor_icon_writer.cpp
@@ -271,7 +271,7 @@ void resource_cursor_icon_writer::add_icon(const std::string& icon_file, const s
{
resource_directory_entry new_icon_group_entry;
new_icon_group_entry.set_name(icon_group_name);
- std::auto_ptr data_info;
+ std::unique_ptr data_info;
try
{
@@ -288,7 +288,7 @@ void resource_cursor_icon_writer::add_icon(const std::string& icon_file, uint32_
{
resource_directory_entry new_icon_group_entry;
new_icon_group_entry.set_id(icon_group_id);
- std::auto_ptr data_info;
+ std::unique_ptr data_info;
try
{
@@ -310,7 +310,7 @@ void resource_cursor_icon_writer::add_cursor(const std::string& cursor_file, con
{
resource_directory_entry new_cursor_group_entry;
new_cursor_group_entry.set_name(cursor_group_name);
- std::auto_ptr data_info;
+ std::unique_ptr data_info;
try
{
@@ -327,7 +327,7 @@ void resource_cursor_icon_writer::add_cursor(const std::string& cursor_file, uin
{
resource_directory_entry new_cursor_group_entry;
new_cursor_group_entry.set_id(cursor_group_id);
- std::auto_ptr data_info;
+ std::unique_ptr data_info;
try
{