Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-08 09:06:52


----- Original Message -----
From: "Toon Knapen" <toon.knapen_at_[hidden]>

> But once layout and initialisation is covered, what about copying for
> intstance. If I std::copy( complex1_begin, complex1_end,
complex2_begin),
> is the compiler able to use memcpy (AFAIK it will call the assignment
op for
> every one of them)

That part could be handled with compiler-supported type_traits, using
has_trivial_copy_constructor. Much less of a challenge.

-Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk