[Quickfix-developers] Bug in STL effects quickfix, gcc version 2.95.4
Brought to you by:
orenmnero
From: Clark S. <cla...@ya...> - 2004-08-20 16:31:12
|
To: qui...@li... From: cla...@ya... Subject: Bug in STL effects quickfix, gcc version 2.95.4 < std::set <FIX::SessionID>::iterator ps; < FIX::Dictionary dictionary; < std::string NamingConvention; < < < for (ps=_session_settings->getSessions().begin(); < ps!=_session_settings->getSessions().end(); < ps++) < { < _session_settings->get( *ps); < dictionary = _session_settings->get( *ps); This causes a sigsev. The sigsev is in the string comparision function in the STL. I hacked around a bit, but I couldn't get string.cc to compile in the STL. I fixed the problem by making adding a function get_m_settings() to class SessionSettings: Dictionaries& get_m_settings() { return m_settings;} I then iterate through that map explicitly: void relay_server::put_session_settings( FIX::SessionSettings *ss) std::map < FIX::SessionID, FIX::Dictionary >::iterator pd; for (pd=ss->get_m_settings().begin(); pd!=ss->get_m_settings().end(); pd++) { This is certainly not the most elegent fix, but it was all I could do without hacking a fix for the STL HTH Clark --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! |