friendship problem with templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sza110
    New Member
    • Nov 2008
    • 3

    friendship problem with templates

    I would like to declare IMM class a friend of YLC2Plot class. Any ideas??
    Thanks in advance.
    i am using sun c++ 5.9 ( CC )
    /*************** *************** ***************/
    #ifndef _ESTIMATOR_H
    #define _ESTIMATOR_H

    template<typena me RadarType, typename FilterType>
    class IMM: public RadarType, public FilterType {
    public:
    //....
    protected:
    //...
    private:
    //..

    };

    #endif
    /*************** *************** ************/

    #ifndef _YLC2PLOT_H
    #define _YLC2PLOT_H


    #include "Estimator. h"

    class YLC2Plot : public BasePlot {
    public:
    friend class IMM;

    protected:
    //....

    private:
    //.....
    };


    #endif /* _YLC2PLOT_H */
  • sza110
    New Member
    • Nov 2008
    • 3

    #2
    all of you are idiots
    I have done it myself
    next time please repond quickly
    thanks

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      This forum does not tolerate abusive postings which your last post is and expecting to be answered in around 30 minutes is extremely arrogant. This is a multi-national forum and not everyone is in the same time zone as you.

      I suggest you read our posting guidelines as any further behaviour of this type will initially lead to a temporary ban of your account.

      Banfa
      Administrator

      Comment

      • sza110
        New Member
        • Nov 2008
        • 3

        #4
        I am deeply sorry for the last post, actually my teammate posted it, and I have already reported him to my superiors at the company we work at.

        Comment

        Working...