1 Oct 2009 02:24
Re: boost::variant and "Current Approach: Temporary HeapBackup" vs "An Initial Solution: Double Storage"
Peter Foelsche <peter_foelsche <at> agilent.com>
2009-10-01 00:24:02 GMT
2009-10-01 00:24:02 GMT
"Peter Foelsche" <peter_foelsche <at> agilent.com> wrote in message news:ha0lp0$jcu$1 <at> ger.gmane.org... >> If any of the variant's types have a no-throw default constructor, >> then no heap backup is used, because variant can construct >> an object of that type if an exception is thrown. In practice, >> this means built-in types, or boost::blank. > > > This means, my assumptions about exceptions safety of boost::variant may > be wrong. > Is this following code & assertion valid? > I would like if I can assume this. never mind -- exceptions safety seems to be guaranteed-- I just had a look at boost::detail::variant::backup_assigner _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Jon
_______________________________________________
Unsubscribe & other changes:
Looks like we have a new Fusion maintainer :-P
Not that I'll be abandoning it, but there's no harm in having
more than a couple either.
Hat's off to you, Christopher!
RSS Feed