thanks for the quick reply. It works, but i'm getting some error messages in ms visual 6 c++ /w sp5. Any ideas? This is how i used the set:
struct Event
{
int time; // Time of the event
int transaction;
}; // End Event
// this is just the header of ltstr , the implementation returns a bool
struct ltstr {
bool operator() (const Event& lhs, const Event& rhs);
};
set<Event, ltstr> eventList;
warning messages are:
C:\Documents and Settings\BartonMXP\My Documents\Project3\Bank.cpp(22) : warning C4786: 'std:

air<std::_Tree<Bank::Event,Bank::Event,std::set<Bank::Event,Bank::ltstr,std::allocator<Bank::Event> >::_Kfn,Bank::ltstr,std::allocator<Bank::Event> >::ite
rator,std::_Tree<Bank::Event,Bank::Event,std::set<Bank::Event,Bank::ltstr,std::allocator<Bank::Event> >::_Kfn,Bank::ltstr,std::allocator<Bank::Event> >::iterator>' : identifier was truncated to '255' characters in the debug information
C:\Documents and Settings\BartonMXP\My Documents\Project3\Bank.cpp(22) : warning C4786: 'std:

air<std::_Tree<Bank::Event,Bank::Event,std::set<Bank::Event,Bank::ltstr,std::allocator<Bank::Event> >::_Kfn,Bank::ltstr,std::allocator<Bank::Event> >::con
st_iterator,std::_Tree<Bank::Event,Bank::Event,std::set<Bank::Event,Bank::ltstr,std::allocator<Bank::Event> >::_Kfn,Bank::ltstr,std::allocator<Bank::Event> >::const_iterator>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(160) : warning C4786: 'std::_Tree<Bank::Event,Bank::Event,std::set<Bank::Event,Bank::ltstr,std::allocator<Bank::Event> >::_Kfn,Bank::ltstr,std::allocator<Bank::Event> >::_Tree<Bank::Event,B
ank::Event,std::set<Bank::Event,Bank::ltstr,std::allocator<Bank::Event> >::_Kfn,Bank::ltstr,std::allocator<Bank::Event> >' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\utility(21) : warning C4786: 'std:

air<std::_Tree<Bank::Event,Bank::Event,std::set<Bank::Event,Bank::ltstr,std::allocator<Bank::Event> >::_Kfn,Bank::ltstr,std::allocator<Bank::Event> >::iterator
,bool>:

air<std::_Tree<Bank::Event,Bank::Event,std::set<Bank::Event,Bank::ltstr,std::allocator<Bank::Event> >::_Kfn,Bank::ltstr,std::allocator<Bank::Event> >::iterator,bool>' : identifier was truncated to '255' characters in the debug information
Linking...
I also did it using the following:
struct Event
{
int time; // Time of the event
int transaction; // -1 is departure, >= 0 is transaction time of arrival
bool operator< (const Event& a) const
{
return (time < a.time);
}
}; // End Event
but that had more warning messages. Any ideas?