Derek Li
Derek Li
also the side effect of std::array is that it requires a default constructor on T.
Yes, but does not sound good if a class can only be used on heap, but not on stack due to big array. For example below code will get core...
btw, google does not use exceptions in its cppguide :)
I'm new to zeromq and its cpp api. Obviously it's wrong/dangerous to accept a const ref but const away to modify it internally.
Certainly you can overload socket_t::send with a new one accepting a pointer to message_t and leave the one with message_t ref unchanged to keep it backward compatible.
Having same issue.