mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-35632 HandlerSocket uses deprecated C++98 auto_ptr
Change uses of auto_ptr to unique_ptr
This commit is contained in:
committed by
Dave Gosselin
parent
78157c4765
commit
86b257f870
@@ -19,11 +19,6 @@
|
||||
#include "string_ref.hpp"
|
||||
#include "string_buffer.hpp"
|
||||
|
||||
#ifdef __GNUC__
|
||||
/* auto_ptr is deprecated */
|
||||
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
namespace dena {
|
||||
|
||||
struct hstcpcli_filter {
|
||||
@@ -35,7 +30,7 @@ struct hstcpcli_filter {
|
||||
};
|
||||
|
||||
struct hstcpcli_i;
|
||||
typedef std::auto_ptr<hstcpcli_i> hstcpcli_ptr;
|
||||
typedef std::unique_ptr<hstcpcli_i> hstcpcli_ptr;
|
||||
|
||||
struct hstcpcli_i {
|
||||
virtual ~hstcpcli_i() = default;
|
||||
|
Reference in New Issue
Block a user