Boost logo

Boost Users :

From: David Minor (david-m_at_[hidden])
Date: 2006-12-18 10:14:43


This example, from the docs, won't compile with linux g++3.4.3

 

typedef map<

    pair<int, char>

  , pair<double, std::string> >

map_type;

 

map_type m(

    make_pair<int>('X')

  , make_pair<double>("Men"));

 

 

 

int main()

{

            std::cout << at<int>(m) << std::endl;

            std::cout << at<double>(m) << std::endl;

         

}



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