> Anyone manage to use context and socket as C++ object members without
> getting "syntax error: constant" and without using pointers?

Do you have a code snippet of what you're trying to do?

Both context_t and socket_t are missing copy constructors and assignment
operators, so you'd have to create new instances in your own constructor
using an initialization list.  You couldn't take them in as a parameter
from somewhere else.

If you need to take in a context from somewhere else, and don't want to
use a pointer, I'd try a reference or a shared_ptr.

–doug

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to