WvStreams
Static Public Member Functions | List of all members
WvDeserialize< T * > Class Template Reference

If there's a deserializer for type "T", this will make a default deserializer for type "T *"; that is, it'll allocate the new object dynamically and you'll have to free it after. More...

#include <wvserialize.h>

Static Public Member Functions

static T * go (WvBuf &buf)
 

Detailed Description

template<typename T>
class WvDeserialize< T * >

If there's a deserializer for type "T", this will make a default deserializer for type "T *"; that is, it'll allocate the new object dynamically and you'll have to free it after.

This helps when you want to assume all deserializers return pointers that you need to delete later.

FIXME: this class takes precedence over specialized _wv_deserialize() functions for pointers! Pointer-based deserializers need to be classes too until this is resolved.

Definition at line 231 of file wvserialize.h.


The documentation for this class was generated from the following file: