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 + }