From f4a9402c649fc213fb850f9cc8a0c89fc027f0d6 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sat, 28 Dec 2013 14:06:49 +0100 Subject: Added define for minimal compatibility with legacy smart pointers. --- vmime/types.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vmime/types.hpp b/vmime/types.hpp index 034330bc..12e5bf71 100644 --- a/vmime/types.hpp +++ b/vmime/types.hpp @@ -30,6 +30,7 @@ #include #include #include +#include #include "vmime/config.hpp" @@ -95,6 +96,16 @@ namespace vmime // For compatibility with versions <= 0.7.1 (deprecated) namespace net { } namespace messaging = net; + + // For (minimal) compatibility with legacy smart pointers (<= 0.9.1) + // Your compiler must have support for C++11 +#if VMIME_COMPAT_LEGACY_SMART_POINTERS + template using ref = shared_ptr ; + class creator {}; // unused + template + inline shared_ptr create(Args&&... args) { return make_shared (args...); } +#endif + } -- cgit v1.2.3