vmime vs std types

78 views
Skip to first unread message

Chaser

unread,
Mar 29, 2014, 3:38:25 PM3/29/14
to vm...@googlegroups.com
Hi!
Can I replace some vmime types with std types?

vmime::shared_ptr => std::shared_ptr
vmime::make_shared => std::make_shared
vmime::weak_ptr => std::weak_ptr
vmime::string => std::string

What side-effects can happen?

I use c++11 with gcc-4.8

Vincent Richard

unread,
Mar 31, 2014, 6:45:32 AM3/31/14
to vm...@googlegroups.com
Hi!

As long as VMime is compiled with C++11 support (check the configure log), this is totally safe, as vmime::shared_ptr is actually a typedef for std::shared_ptr (same for make_shared and weak_ptr).

As for vmime::string, it is always typedef'd as std::string (at least, for now, but any future change on this will be backward-compatible).

Vincent
Reply all
Reply to author
Forward
0 new messages