Boost logo

Boost Users :

Subject: [Boost-users] a tuple from a pair?
From: Krzysztof Żelechowski (giecrilj_at_[hidden])
Date: 2011-09-21 10:54:26


How come a tuple, being a generalisation of a pair, cannot be constructed
from one?

I mean something along the lines

make_tuple (pair const &p) { return make_tuple (p.first, p_second); }

Would be good to have.


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