Boost logo

Boost :

From: Jason House (jhouse_at_[hidden])
Date: 2003-01-31 14:25:22


The first part of this is probably a stupid question

Terje Slettebø wrote:
>
> What makes the template typedef proposal different from the template alias
> proposal, is that the former may be specialised, and the latter may be
> deduced.

What do you mean by deduced? I saw it in the proposal too...

Here's a copy of text from the proposal:

***
template<class T, class P> class smart_ptr;
template<class T> typedef smart_ptr<T, SharedPolicy> shared_ptr;
template<class T> void f(smart_ptr<T, SharedPolicy>);
template<class T> void f(shared_ptr<T>);

In this proposal, the last two lines declare different templates.
***

That is the kind of stuff that concerns me. There is a deviation in the
usage of smart_ptr<T, SharedPolicy> and shared_ptr<T> even though they
are typedef'd to be the same.

Also, where should such discussion be going? Someone mentioned that
this is not the place, but I'm not familiar with the various other
mailing lists.


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