
23 Mar
2006
23 Mar
'06
9:21 p.m.
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