Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5455: std::vector<byte_> not assignable to std::vector<unsigned char>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-13 02:31:47
#5455: std::vector<byte_> not assignable to std::vector<unsigned char>
-----------------------------------+----------------------------------------
Reporter: jaredgrubb@⦠| Owner: hkaiser
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: spirit
Version: Boost 1.44.0 | Severity: Problem
Resolution: wontfix | Keywords:
-----------------------------------+----------------------------------------
Comment (by jaredgrubb@â¦):
It just seems odd that all these work:
{{{
U = T
U %= T
std::vector<U> %= (*T)
at_c<n>(U) = T
}}}
but this fails:
{{{
at_c<n>(std::vector<U>) = std::vector<T>
}}}
I was able to work around the issue by using phx::assign, but it just
seems inconsistent, especially since there doesnt appear to be any useful
way to combine at_c with a vector of byte_'s
(std::vector<boost::integer::endian<2, unsigned char, 8, 0> just doesnt
seem to be the right way to do it, and it looks like that should be
convertible to std::vector<unsigned char>). But, if it's "wontfix", I'll
let it go. Thanks.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5455#comment:6> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC