There's no good reason for it. If you like, make a patch and get it to work as you'd expect.
On Wed, Jul 2, 2014 at 8:22 PM, Thomas Rodgers <[email protected]> wrote: > Just curious what the rationale for this is? The result of least > astonishment (to me anyway) would be a copy of an empty message. > > zmq_msg_t a; > zmq_msg_init(&a); > > ... > > zmq_msg_t b; > int rc = zmq_msg_copy(&b, &a); > assert(rc == 0); // fails, errno=EINVAL > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
