|
Boost Users : |
From: Pablo Aguilar (pablo.aguilar_at_[hidden])
Date: 2006-03-16 13:54:18
Michael wrote:
> boost::dynamic_bitset<byte> m_patterndelta;
>
> // intialization of m_patterndelta
>
> ....
>
> std::vector<byte> pack;
>
> boost::to_block_range<byte>(m_patterndelta, pack.begin()); // GPF because of
> bad pointer in "pack". Cannot figure why, may be someone can help?
How about trying:
boost::to_block_range<byte>(m_patterndelta, back_inserter(pack));
you're trying to write to pack's elements, which are none at the point
of the call.
HTH
Pablo Aguilar
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net