Refinitiv / Real-Time-SDK

Other
191 stars 129 forks source link

Ema C++ : OmmConsumerClient, OmmConsumerErrorClient forbid copy-constructor for no reason #286

Open miczuc opened 2 months ago

miczuc commented 2 months ago

In a consumer application the classes OmmConsumerClient, OmmConsumerErrorClient must be subclassed in order to handle messages / events through reimplemented virtual callback methods e.g. onRefreshMsg(). However these classes have a disabled copy-constructor and assignment operator, e.g.:

private : OmmConsumerClient( const OmmConsumerClient& ); OmmConsumerClient& operator=( const OmmConsumerClient& );

This is complete senseless, since the classes do not contain any data members. It forces the application to use non-copyable classes as handler classes, although it is not necessary. This is an unwanted and unnecessary restriction.

fogol commented 2 months ago

@miczuc Thank you for bringing this to our attention. We will investigate the issue to provide the solution.