Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Use string, not char * in C++ APIs #6

Open
indygreg opened this issue Mar 1, 2012 · 0 comments
Open

Use string, not char * in C++ APIs #6

indygreg opened this issue Mar 1, 2012 · 0 comments
Labels

Comments

@indygreg
Copy link

indygreg commented Mar 1, 2012

If writing a C++ API, consume ::std::string from your API, not char *. This is the C++ way of doing it. Since zmq wants a char * for the endpoint, you can get at it through ::std::string.char_s() or something like that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant