]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/sptr.h
do not error if auto-detect-proxy cmd has no output
[apt.git] / apt-pkg / contrib / sptr.h
index e2e811b1d1696937776ee38f367feae88073a0c9..ee4a65d60a618a2b49af3ecd15f6084b6b5f0cbf 100644 (file)
                                                                        /*}}}*/
 #ifndef SMART_POINTER_H
 #define SMART_POINTER_H
+#include <apt-pkg/macros.h>
 
 template <class T>
-class SPtr
+class APT_DEPRECATED_MSG("use std::unique_ptr instead") SPtr
 {
    public:
    T *Ptr;
@@ -43,7 +44,7 @@ class SPtr
 };
 
 template <class T>
-class SPtrArray
+class APT_DEPRECATED_MSG("use std::unique_ptr instead") SPtrArray
 {
    public:
    T *Ptr;