$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.