|
Boost Users : |
Subject: [Boost-users] reference_wrapper 101
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2011-06-13 03:55:14
I thought understood what boost::reference_wrapper was all about, and in the
context
of, say Boost.Bind, it seems pretty clear.
But why would you define a function to RETURN a reference_wrapper? eg
template <class T> struct X
{
std::pair<boost::reference_wrapper<T>, unsigned> getSomething(....)
const;
};
I suspect I'm having a 'doh' moment here!
Thx,
- Rob.
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