Re: STL-container used with references
Kevin Goodsell wrote:[color=blue]
>
> Pete Becker wrote:
>[color=green]
> > Mike Wahler wrote:
> >[color=darkred]
> >>What's the significance of the (namespace?) name 'tr1'?
> >>[/color]
> >
> >
> > The C++ standards committee has a Technical Report in the works,
> > incorporating recommended library extensions. It's known informally as
> > TR1, and its extensions go in namespace std::tr1.
> >[/color]
>
> I don't like the sound of this. Are they going to permanently put these
> things in std::tr1::?[/color]
TR1 puts them in std::tr1. Future TRs and future standards could do
something different.
[color=blue]
> Why wouldn't they just use std::?[/color]
Because they're recommended extensions and not part of the standard.
[color=blue]
> If they put it
> in std:: later, will they have to also support it in std::tr1:: for
> compatibility?
>[/color]
Maybe. Maybe the new stuff won't ever go into the standard.
--
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
Kevin Goodsell wrote:[color=blue]
>
> Pete Becker wrote:
>[color=green]
> > Mike Wahler wrote:
> >[color=darkred]
> >>What's the significance of the (namespace?) name 'tr1'?
> >>[/color]
> >
> >
> > The C++ standards committee has a Technical Report in the works,
> > incorporating recommended library extensions. It's known informally as
> > TR1, and its extensions go in namespace std::tr1.
> >[/color]
>
> I don't like the sound of this. Are they going to permanently put these
> things in std::tr1::?[/color]
TR1 puts them in std::tr1. Future TRs and future standards could do
something different.
[color=blue]
> Why wouldn't they just use std::?[/color]
Because they're recommended extensions and not part of the standard.
[color=blue]
> If they put it
> in std:: later, will they have to also support it in std::tr1:: for
> compatibility?
>[/color]
Maybe. Maybe the new stuff won't ever go into the standard.
--
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
Comment