
18 Apr
2008
18 Apr
'08
7:14 p.m.
Robert Dailey wrote:
I have the following code:
void HandlePair( std::pair
& mypair ) { } void main() { boost::ptr_map
mymap; HandlePair( *mymap.begin() ); } What's the proper way to accept pairs in the HandlePair function?
I'd suggest basing it on your actual ptr_map type, e.g.:
void HandlePair(const boost::ptr_map