
12 Aug
2011
12 Aug
'11
1:24 a.m.
On 8/12/2011 9:08 AM, Eric Niebler wrote:
I wanted to test this, so I tried the following:
using namespace boost::fusion; auto vec = make_vector(1, 3.14, "hello"); auto push = push_back(vec, 42); auto pop = pop_back(push);
auto i1 = find<int>(pop); auto i2 = find<double>(pop);
assert(i1 != end(pop)); assert(i2 != end(pop)); assert(i1 != i2);
It doesn't compile for me. I think it should. And I would hope none of the asserts fire. Will that be the case?
I think so. It's most probably a bug in the implementation. I'll go check it out. Regards, -- Joel de Guzman http://www.boostpro.com http://boost-spirit.com