Subject: Re: [boost] bug in boost::variant?
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2009-12-11 00:40:34
Hmm. As usual, it was user error. Although I'm not quite sure why it
didn't work. My operator= was assigning an object of type const expr_node&
directly to the variant. Still, I'm not sure why it compiled at all.
shouldn't the compiler have reported an error? And even if it were correct
to not report an error, shouldn't it have actually worked since the class
was pod? I'm not sure what was really going on behind the scenes in the
compiler to make it create a junk object.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk