Boost logo

Boost Users :

Subject: Re: [Boost-users] large variant performance compared (50 elements)
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-01-08 15:53:01


At Sat, 08 Jan 2011 02:17:36 -0500,
Dave Abrahams wrote:
>
> At Fri, 07 Jan 2011 23:45:04 +0100,
> Paul wrote:
> >
> > In a project we are using variants holding shared_ptr's. These
> > variants are typically 20 items large but are growing as the project
> > progresses.
>
> If it's really just shared_ptr's in the variant, I would seriously
> consider replacing it with shared_ptr<void> (with a type tag if
> necessary). Just a thought.

Seriously, could be a big simplification and speedup vs. using using
variant.

not-going-to-mention-it-again-ly y'rs,
Dave

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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