On 8/8/12, Miles Bader <mi...@gnu.org> wrote: > Mike Stump <mikest...@comcast.net> writes: > > > Constructors are allowed, but PODs are often passed more > > > efficiently. That property seemed particularly important > > > for double_int. > > > > Show us the difference in timing. Show us the generated code. > > I can't imagine that it could ever matter. > > I'm also curious about that statement... PODs don't really > seem to offer much advantage with modern compilers, except in a > few very specific cases (of which this doesn't seem to be one), > e.g. in unions.
Which brings up a critical point that double_int is used in trees, which are in a union, and so double_int must be a POD until trees are no longer unions. -- Lawrence Crowl