Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-04-16 17:08:17


Christian Henning wrote:
> Thanks Peter, this makes sense. But just image I cannot change the
> print function's interface. For example I have to interface with MFC's
> CComboBox::AddString( LPCTSTR lpszString ) . Do you think there is
> still a way to have just one for_each() loop? My guts tell me no.

Not without writing your own wrapper function

void print2( std::string const & s )
{
    print( s.c_str() );
}

and binding that instead of 'print'.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net