Subject: [Boost-bugs] [Boost C++ Libraries] #10316: Thread: add subscription operator if the value provide it.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-08-06 08:51:17
#10316: Thread: add subscription operator if the value provide it.
------------------------------+----------------------
Reporter: mjklaim@⦠| Owner: anthonyw
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.55.0 | Severity: Cosmetic
Keywords: |
------------------------------+----------------------
I would like to be able to do
typedef boost::synchronized_value< boost::container::flat_map<int,
int> > ValueIndex;
ValueIndex index;
index[0] = 1;
and would expect that last line to be equivalent to
auto locked_index = index.synchronize();
(*locked_index)[0] = 1;
I'm not totally sure it's possible to do but it would help.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10316> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC