src/common/message.cpp
void Message::addReceiver(const std::string& id)
{
    Locker lock(&m_lock);
    // check that it does not exist
    StringList::iterator i =
        std::find(m_receivers.begin(), m_receivers.end(), id);
    BOOST_ASSERT(i == m_receivers.end());
    m_receivers.push_back(id);
}
// Adds a new receiver to the list
// @param[in] id - the receiver's id
Adds a new receiver to the list
Adds a new receiver to the list
void Message::addReceiver(const std::string& id)
{
    Locker lock(&m_lock);
    StringList::iterator i =
        std::find(m_receivers.begin(), m_receivers.end(), id);
    BOOST_ASSERT(i == m_receivers.end());
    m_receivers.push_back(id);
}
void Message :: addReceiver ( const std :: string & id ) { Locker lock ( & m_lock ) ; StringList :: iterator i = std :: find ( m_receivers . begin ( ) , m_receivers . end ( ) , id ) ; BOOST_ASSERT ( i == m_receivers . end ( ) ) ; m_receivers . push_back ( id ) ; }
Adds a new receiver to the list
Adds a new receiver to the list
// check that it does not exist