Menu

VectorC class

2003-07-25
2003-07-31
  • Alexey Kostin

    Alexey Kostin - 2003-07-25

    What is the reason of defining VectorC class as
    class VectorC : public TVectorC<RealT>
    not
    typedef TVector<RealT> VectorC
    ?

     
    • James Smith

      James Smith - 2003-07-25

      VectorC adds extra capabilities over those of TFVectorC<RealT>, so it has to be it's own class. Besides which, typedefs are generally avoided in RAVL as they make debugging harder and there's normally a better way of solving the problem.

       
    • Alexey Kostin

      Alexey Kostin - 2003-07-31

      1. Would it be nicer to have the capabilities for TFVectorC too?
      2. Why it is harder to debug programs with typedefs?
      3. What do you mean "better way of solving the problem"?

       

Log in to post a comment.