Boost logo

Boost :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2006-03-23 15:21:41


Hi,

STLPort doesnt seem to allow const-types as parameters to std::vector.
It chokes in the std::allocator which define const_reference as const
reference, making the two the same type.
This creates multiple declarations for function-members:

  pointer address(reference __x) const { return &__x; }
  const_pointer address(const_reference __x) const { return &__x; }

Is the STLPort right in this context or should something be done? This
is making this code fails:

std::vector<char> v(128);
boost::asio::buffer(v);

The problem is that even with non-const pod type boost::asio::buffer
is instatiating std::vector<const char>.

Thanks,

--
Felipe Magno de Almeida

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk