std::pair<reference,reference>
Benjamin Kosnik
bkoz@redhat.com
Thu May 18 16:42:00 GMT 2006
> 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
More information about the Libstdc++
mailing list