Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Return Type of template functions

Reply
Thread Tools

Return Type of template functions

 
 
sreeni
Guest
Posts: n/a
 
      02-13-2008
What will be the return type of the following function

T& class<T>:perator * ()
{
....
}
 
Reply With Quote
 
 
 
 
Ian Collins
Guest
Posts: n/a
 
      02-13-2008
sreeni wrote:
> What will be the return type of the following function
>
> T& class<T>:perator * ()
> {
> ....
> }


If it were to compile, T&

--
Ian Collins.
 
Reply With Quote
 
 
 
 
red floyd
Guest
Posts: n/a
 
      02-13-2008
sreeni wrote:
> What will be the return type of the following function
>
> T& class<T>:perator * ()
> {
> ...
> }


Your answer can still be found at
http://www.parashift.com/c++-faq-lit...t.html#faq-5.2
 
Reply With Quote
 
sreeni
Guest
Posts: n/a
 
      02-19-2008
On Feb 13, 9:36 pm, red floyd <no.s...@here.dude> wrote:
> sreeni wrote:
> > What will be the return type of the following function

>
> > T& class<T>:perator * ()
> > {
> > ...
> > }

>
> Your answer can still be found athttp://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.2


Thanks Floyd
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
overloading non-template member functions with template member functions Hicham Mouline C++ 1 04-24-2009 07:47 AM
overloading non-template member functions with template member functions Hicham Mouline C++ 0 04-23-2009 11:42 AM
template functions and "return type overloading" Ann Huxtable C++ 9 07-17-2005 12:45 AM
what value does lack of return or empty "return;" return Greenhorn C Programming 15 03-06-2005 08:19 PM
Can a template function return a template type? Damon C++ 2 12-15-2003 12:56 PM



Advertisments