🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Tilo Levante Thu, 14 Feb 1991 08:23
conversion
#475
Author: Tilo Levante
Date: Thu, 14 Feb 1991 08:23
30 lines
1455 bytes
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              *
*******************************************************************************
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads