-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Hi,
How do you deal with members of classes which are pointers. i.e.
class Bar
{ int a;}
static spotify::json::codec::object_t<Bar> codec()
{
auto codec = spotify::json::codec::object<Bar>();
codec.required("a", &Bar::a);
return codec;
}
class Foo
{
int b;
Bar *c;
}
static spotify::json::codec::object_t<Foo> codec()
{
auto codec = spotify::json::codec::object<Foo>();
codec.required("b", &Foo::b);
// how to represent Bar *c;
return codec;
}
How do I represent *c in the codec. I cant find any example which deals with a pointer.
Thanks
Paul
Metadata
Metadata
Assignees
Labels
No labels