Menu

#4 CPP doesn't use templates

open
nobody
None
5
2012-09-27
2002-03-15
Ian Zink
No

Only the header files reflect the use of templates.
Each function declaration should also be templatized.
Also, per C++ convention, template C++ classes should
be Class_T.cpp and Class_T.h not class.cpp and class.h
respectively.

Thanks,

Ian

Discussion

  • Christie McGee

    Christie McGee - 2002-03-24

    Logged In: YES
    user_id=173086

    A patch has been added into the patch section to fix this
    problem.

    The naming scheme for the filenames, however, has not been
    changed.

     
  • Krzysztof Rzymkowski

    Logged In: YES
    user_id=419557

    Also, per C++ convention, template C++ classes should
    be Class_T.cpp and Class_T.h not class.cpp and class.h
    respectively.

    Well, I don't know where you got that from?
    Seen the STL headers? There's no vector_T.h or list_T.h
    (though I'd still stick with the .h)

    Chris

     

Log in to post a comment.