Inheritance of conversion operator

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fmaerten@igeoss.com

    Inheritance of conversion operator

    Maybe a stupid question:
    Is there ihneritance for conversion operator?
    If yes or no, what is the reason(s)...

    Thanks for your help.

    Example:
    --------
    class A {
    public:
    operator double() const {return d_ ;}
    private:
    double d_ ;
    } ;

    // does b have the operator double()?
    class B: public A {
    } ;

  • frantz

    #2
    Re: Inheritance of conversion operator

    Sorry, this message was older than the previous one...
    Forget it.

    Comment

    Working...