[Q]: Templates and parameter names

Discussion in 'C++' started by james545@my-deja.com, Apr 20, 2005.

  1. Guest

    Hi,

    I am having conflicts with a class template I have called "tree", and a

    paramter named "tree" for a function in a library called OpenCV.
    Any suggestions or insights for solving this problem?
    Thanks for your help. (I am using visual c++ 6.0)

    I am getting this error:
    c:\program files\opencv\cv\include\cv.h(2146) : error C2955: 'tree' :
    use of class template requires template argument list
    c:\work\projects\test\tree.h(772) : see declaration of 'tree'

    Line (2146) of cv.h:
    OPENCVAPI CvSeq* cvContourFromContourTree( CvContourTree *tree,
    CvMemStorage* storage,
    CvTermCriteria criteria );
    , Apr 20, 2005
    #1
    1. Advertising

  2. wrote:
    > I am having conflicts with a class template I have called "tree", and [...]


    So, what's the problem? Rename your class template.
    Victor Bazarov, Apr 20, 2005
    #2
    1. Advertising

  3. Rolf Magnus Guest

    Victor Bazarov wrote:

    > wrote:
    >> I am having conflicts with a class template I have called "tree", and
    >> [...]

    >
    > So, what's the problem? Rename your class template.


    Or put it in a namespace.
    Rolf Magnus, Apr 20, 2005
    #3
    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. JKop
    Replies:
    3
    Views:
    451
  2. fBechmann
    Replies:
    0
    Views:
    391
    fBechmann
    Jun 10, 2004
  3. wanwan
    Replies:
    3
    Views:
    415
    Alex Martelli
    Oct 14, 2005
  4. Generic Usenet Account
    Replies:
    3
    Views:
    799
    Generic Usenet Account
    Jul 14, 2005
  5. recover
    Replies:
    2
    Views:
    786
    recover
    Jul 25, 2006
Loading...

Share This Page