diff options
author | Gary Oberbrunner <garyo@darkstarsystems.com> | 2018-03-13 10:07:50 -0400 |
---|---|---|
committer | Gary Oberbrunner <garyo@darkstarsystems.com> | 2018-03-13 11:00:25 -0400 |
commit | a6689b21322e976488aa7482aafb748b47ca8158 (patch) | |
tree | aa4a563c4cd14d3366c4720f3f38b9b881091d61 /include/core/Array.hpp | |
parent | 4a9e305776a9a182dd29b22789cf5c8e5174a0d5 (diff) | |
download | redot-cpp-a6689b21322e976488aa7482aafb748b47ca8158.tar.gz |
Make all Pool*Array::operator[] as const
This is needed since that operator returns a local copy, not
an lvalue. Attempting to write to the return value of these operators
wouldn't change the array element. PoolVectors need locking when
writing, so this operator can't return a writable reference.
To update a Pool*Array, use the `set()` method which locks and unlocks
the array. For multiple writes, use the `write()` method which returns
a locked writable view, and unlocks when it goes out of scope.
Diffstat (limited to 'include/core/Array.hpp')
0 files changed, 0 insertions, 0 deletions