error: no matching function

Discussion in 'C++' started by Rares Vernica, Apr 28, 2009.

  1. What is the catch with this error message?

    error: no matching function for call to ‘binary_writer<unsigned
    int>::eek:perator()(unsigned int)’
    note: candidates are: void binary_writer<T>::eek:perator()(T&) [with T =
    unsigned int]

    To me, it seems that the candidate matches the function call...

    Thanks,
    Rares
    Rares Vernica, Apr 28, 2009
    #1
    1. Advertising

  2. Rares Vernica

    Noah Roberts Guest

    Rares Vernica wrote:
    > What is the catch with this error message?
    >
    > error: no matching function for call to ‘binary_writer<unsigned
    > int>::eek:perator()(unsigned int)’
    > note: candidates are: void binary_writer<T>::eek:perator()(T&) [with T =
    > unsigned int]
    >
    > To me, it seems that the candidate matches the function call...
    >


    It doesn't match if you're attempting to call the function with an
    rvalue parameter.
    Noah Roberts, Apr 28, 2009
    #2
    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. =?ISO-8859-1?Q?Martin_J=F8rgensen?=
    Replies:
    5
    Views:
    1,296
    =?ISO-8859-1?Q?Martin_J=F8rgensen?=
    May 6, 2006
  2. Replies:
    3
    Views:
    373
  3. Alvin
    Replies:
    8
    Views:
    974
  4. Marc Bissonnette

    Pattern matching : not matching problem

    Marc Bissonnette, Jan 8, 2004, in forum: Perl Misc
    Replies:
    9
    Views:
    233
    Marc Bissonnette
    Jan 13, 2004
  5. Bobby Chamness
    Replies:
    2
    Views:
    227
    Xicheng Jia
    May 3, 2007
Loading...

Share This Page