From 7a5f6b961073ba077ed325050d62b3e3afd99f19 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 5 Oct 2005 10:33:16 +0000 Subject: [PATCH] 'struct' to 'class' to avoid warning with MSVC. --- vmime/base.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vmime/base.hpp b/vmime/base.hpp index 1b531fa9..f657b1e7 100644 --- a/vmime/base.hpp +++ b/vmime/base.hpp @@ -167,8 +167,10 @@ namespace vmime * Make this class a friend if you want to be able to use * vmime::create() with private/protected constructors. */ - struct creator + class creator { + public: + template static ref create() { return ref ::fromPtr(new T); }