$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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'.