This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: template specialisation


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]