Re: OONSTD: Amateur Programmers

Gabriel Dos Reis (Gabriel.Dos-Reis@dptmaths.ens-cachan.fr)
26 Mar 1999 16:48:08 +0100

>>>>> «Daniel», Daniel Goujot <goujot@sequoia.ens.fr> wrote:

[...]

> The question of the day : why is it too difficult to use reference types
> in STL template arguments ? [map<Vector const &, Vector const &> won't
> compile : reference to reference type]

An object can be put in a standard container iff it meets the
"CopyConstructible" and "Assignable" requirements. References don't.

-- Gaby