This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::pair<reference,reference>
> I'm not sure I understand. You mean about DR 106. It looked like it but
> I may be wrong...
> It's about the langage forbidding to take references of references.
Sorry, you're right: this is core 106. I'd been looking at the library list.
> No I mean this:
>
> #include <utility>
>
> int main()
> {
> using namespace std;
>
> int i = 6;
> int j = 7;
> int& r1 = i;
> int& r2 = j;
> pair<int&, int&> p = make_pair(r1, r2);
> }
Sure, your initial suggestion seems like a winner.
-benjamin