🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by brian (b.c.) white Tue, 20 Feb 1996 18:43
Re: Problem with template overloading
#3385
Author: brian (b.c.) white
Date: Tue, 20 Feb 1996 18:43
20 lines
1531 bytes
>>Is it allowed to overload template names based on their parameters
>>in the same way that functions can be overloaded?
>
>No, that is not allowed. You cannot have more than one template
>with the same name in the same scope.

Is there a specific reason for this?

                                        Brian
                                 ( bcwhite@bnr.ca )

-------------------------------------------------------------------------------
    In theory, theory and practice are the same.  In practice, they're not.
---
[ To submit articles: Try just posting with your newsreader.  If that fails,
                      use mailto:std-c++@ncar.ucar.edu
  FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  Comments? mailto:std.c++-request@ncar.ucar.edu 
]
Re: Problem with template overloading
#3355
Author: Steve Clamage
Date: Tue, 20 Feb 1996 21:13
23 lines
1442 bytes
In article dhs@bcarh8ab.bnr.ca, "brian (b.c.) white" <bcwhite@bnr.ca> writes:
>>>Is it allowed to overload template names based on their parameters
>>>in the same way that functions can be overloaded?

>>No, that is not allowed. You cannot have more than one template
>>with the same name in the same scope.

>Is there a specific reason for this?

Yes. Only in special cases would you not have insurmountable ambiguities.
Just as type names must be unique in one scope, so must template names.

---
Steve Clamage, stephen.clamage@eng.sun.com



[ To submit articles: Try just posting with your newsreader.
		      If that fails, use mailto:std-c++@ncar.ucar.edu
  FAQ:    http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads