Re: function templates are not being compiled !
- From: "Vladimir Nesterovsky" <vladimir@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Jul 2005 14:15:21 +0200
> template <class T>
> void f()
> {
> g();
> }
>
> int main()
> {
> }
>
> That code is ill-formed, since there is no g() visible, but it is up to
> the compiler whether it diagnoses the error or not.
Tom,
"g()" might be a call to a "void g(T t = T());" and therefore it's template
dependant.
--
Vladimir Nesterovsky
e-mail: vladimir@xxxxxxxxxxxxxxxxxxxx
home: www.nesterovsky-bros.com
.
- Follow-Ups:
- Re: function templates are not being compiled !
- From: Tom Widmer [VC++ MVP]
- Re: function templates are not being compiled !
- References:
- function templates are not being compiled !
- From: Alfonso Morra
- Re: function templates are not being compiled !
- From: Tom Widmer [VC++ MVP]
- function templates are not being compiled !
- Prev by Date: Re: Does .NET CLR support any class functions to read/write profile,
- Next by Date: Re: Linker Error
- Previous by thread: Re: function templates are not being compiled !
- Next by thread: Re: function templates are not being compiled !
- Index(es):
Relevant Pages
|
Loading