Boost logo

Boost Users :

From: Robert Dailey (rcdailey_at_[hidden])
Date: 2008-04-18 13:20:36


Hi,

I have the following code:

void HandlePair( std::pair<int, char*>& mypair )
{
}

void main()
{
        boost::ptr_map<int, char> mymap;
        HandlePair( *mymap.begin() );
}

What's the proper way to accept pairs in the HandlePair function? I can't
seem to find a boost::ptr_pair anywhere, or something like that.



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