This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: template specialisation
- To: D Maley <d dot maley at airforce1 dot stmarys-belfast dot ac dot uk>
- Subject: Re: template specialisation
- From: Valentin Bonnard <bonnardv at pratique dot fr>
- Date: Mon, 09 Nov 1998 22:23:30 +0100
- CC: egcs-bugs at cygnus dot com
- Organization: Ecole Normale Superieure, Paris, France
- References: <199811091342.NAA24602@stmarys-belfast.ac.uk>
D Maley <d.maley@airforce1.stmarys-belfast.ac.uk> wrote:
> I would like to write a specialisation
>
> template <class T> Manager<pair<typename T::first_type, typename
> T::second_type> > { /* .. */ };
This isn't valid (and I am not sure to understand what it
would mean). What about the easy, natural and working:
template <typename First, typename Second>
class Manager<std::pair<First, Second> > { };
--
Valentin Bonnard mailto:bonnardv@pratique.fr
info about C++/a propos du C++: http://pages.pratique.fr/~bonnardv/