aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-10-05 10:33:16 +0000
committerVincent Richard <[email protected]>2005-10-05 10:33:16 +0000
commit7a5f6b961073ba077ed325050d62b3e3afd99f19 (patch)
tree7329b514e70d71b1e735feec7e79507f1d1e3ca6
parentAdded service::setTimeoutHandlerFactory(). (diff)
downloadvmime-7a5f6b961073ba077ed325050d62b3e3afd99f19.tar.gz
vmime-7a5f6b961073ba077ed325050d62b3e3afd99f19.zip
'struct' to 'class' to avoid warning with MSVC.
-rw-r--r--vmime/base.hpp4
1 files changed, 3 insertions, 1 deletions
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 <class T>
static ref <T> create() { return ref <T>::fromPtr(new T); }