[zeromq-dev] zeromq-2.0.10 Compilation error on CentOS
Martin Sustrik
sustrik at 250bpm.com
Wed Oct 27 23:46:22 CEST 2010
On 10/27/2010 08:16 PM, Pradeep Hodigere wrote:
> yarray.hpp: In constructor ‘zmq::yarray_t<T>::yarray_t() [with T =
> zmq::socket_base_t]’:
> app_thread.cpp:64: instantiated from here
> yarray.hpp:40: error: default argument for parameter of type
> ‘std::allocator<zmq::socket_base_t*>&’ has type
> ‘std::allocator<zmq::socket_base_t*>’
Hm. gcc 4.4.3 seems to have no problem with that.
I have no idea why supplying a temporary object (T) should not work with
a function that requires a reference (T&).
Any ideas anyone? Is it just a gcc bug or something more fundamental?
Martin
More information about the zeromq-dev
mailing list