[ptr_container] Pair type for boost::ptr_map?

Hi,
I have the following code:
void HandlePair( std::pair

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

Nat Goodspeed skrev:
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
::value_type& mypair) {}
Actually, using
void HandlePair(boost::ptr_map
participants (3)
-
Nat Goodspeed
-
Robert Dailey
-
Thorsten Ottosen