Original Post
How would I write the syntax for this:
std::for_each(m_PersistentEvents.begin(), m_PersistentEvents.end(), std::mem_fun(&CGameEvent::Execute));
Where m_PersistentEvents no longer is filled with pointers, but smart pointers?
Error : ''std::mem_fun_t::operator`()'''' : cannot convert parameter 1 from ''boost::shared_ptr'' to ''CGameEvent *''
..or is this a case of ''not unless you modify boost''?
Many thanks,
Chris Brodie
http:\\fourth.flipcode.com