Return Type of template functions

Discussion in 'C++' started by sreeni, Feb 13, 2008.

  1. sreeni

    sreeni Guest

    What will be the return type of the following function

    T& class<T>::eek:perator * ()
    {
    ....
    }
     
    sreeni, Feb 13, 2008
    #1
    1. Advertising

  2. sreeni

    Ian Collins Guest

    sreeni wrote:
    > What will be the return type of the following function
    >
    > T& class<T>::eek:perator * ()
    > {
    > ....
    > }


    If it were to compile, T&

    --
    Ian Collins.
     
    Ian Collins, Feb 13, 2008
    #2
    1. Advertising

  3. sreeni

    red floyd Guest

    red floyd, Feb 13, 2008
    #3
  4. sreeni

    sreeni Guest

    On Feb 13, 9:36 pm, red floyd <> wrote:
    > sreeni wrote:
    > > What will be the return type of the following function

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

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


    Thanks Floyd
     
    sreeni, Feb 19, 2008
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Damon
    Replies:
    2
    Views:
    11,321
    Damon
    Dec 15, 2003
  2. Greenhorn
    Replies:
    15
    Views:
    849
    Keith Thompson
    Mar 6, 2005
  3. Ann Huxtable
    Replies:
    9
    Views:
    742
    benben
    Jul 17, 2005
  4. Hicham Mouline
    Replies:
    0
    Views:
    441
    Hicham Mouline
    Apr 23, 2009
  5. Hicham Mouline
    Replies:
    1
    Views:
    423
    Michael DOUBEZ
    Apr 24, 2009
Loading...

Share This Page