cppzmq icon indicating copy to clipboard operation
cppzmq copied to clipboard

`_t` type suffixes are not POSIX compliant

Open ovanes opened this issue 8 years ago • 2 comments

As of https://stackoverflow.com/a/44573281/98693 POSIX reserved all the names with _t suffixes. To be POSIX compliant this lib shouldn't be using any of _t suffixes :(

ovanes avatar Jul 28 '17 09:07 ovanes

Is there any definition actually clashing? Note we can't change public definitions for backward compatibility

bluca avatar Jul 28 '17 10:07 bluca

yes, this more just for the future knowledge... Currently there are no clashes, but names like context_t or socket_t might very likely be used by POSIX. On the other hand, these are C++ classes available in a namespace. Even if there are clashes, one might just need to explicitly put fully qualified namespace before them. Might get a bit murky if they will be macros...

ovanes avatar Jul 31 '17 19:07 ovanes