[Quickfix-developers] C++ copy-constructor for FIX::SessionSettings needed
Brought to you by:
orenmnero
From: <Joh...@di...> - 2011-11-14 08:12:30
|
Hi QuickFix-Developers, did anyone of You ever write code for a copy-constructor for FX::SessionSettings? I think I need one for passing some additional non-FIX-application settings into my Application-class. The following code gives me errors: class MQ : public FIX::SessionSettings { public: MQ() {} MQ( const std::string& file ) throw( FIX::ConfigError ); MQ( const MQ& ); ....... MQ::MQ( const MQ& mq ) { std::istream cp_stream << mq; cp_stream >> *this; } Application.cpp: In member function `void Application::run(const MQ&)': Application.cpp:195: error: no match for call to `(MQ) (const MQ&)' Any ideas? Thanks in advance, Hannes Johannes Grimm -------------------------------------------------------------------------------------- DIE SOFTWARE Peter Fitzon GmbH Im Klosterbauhof 3 85560 Ebersberg Deutschland Tel.-Zentrale: +49 (0) 80 92 / 86 17 - 0 Tel.-Durchwahl: +49 (0) 80 92 / 86 17 - 173 Fax: +49 (0) 80 92 / 86 17 - 373 Schweiz Tel.-Zentrale: +41 (0) 43 / 48 83 - 000 Tel.-Durchwahl: +41 (0) 43 / 48 83 - 173 Fax: +41 (0) 43 / 48 83 - 373 mailto:joh...@di... Internet: http://www.die-software.com Geschäftsführer: Peter Fitzon, Klaus J. Friese Registergericht: Amtsgericht München, HRB 101848 -------------------------------------------------------------------------------------- |