[gnu.g++.help] conversion

tilo@nmr.lpc.ethz.ch (Tilo Levante) (02/14/91)

Usually a constructor with one parameter is used as conversion operator.
Is it possible to supress this. For example

class prop 
{
  ....
  public:
    prop();
    prop(const gen_op&);
    prop(const prop&);
    ~prop();
    ....
}

Now each gen_op would be automaticly converted to a prop. I don't want
this, but I need a explicit conversion routine.

Is there a way in C++ to do this.

Thanks.

Tilo

*******************************************************************************
* Tilo Levante                            Domain: tilo@nmr.lpc.ethz.ch        *
* Institut fuer physikalische Chemie      UUCP:   ...!mcsun!chx400!ethz!tilo  *
* Eidgenoessische Technische Hochschule                                       *   
* ETH-Zentrum                             Phone:  +41/1/256-4372              *
* CH-8092 Zuerich                         Fax:    +41/1/252-3402              *
*******************************************************************************