diff options
author | Determinant <ted.sybil@gmail.com> | 2018-07-13 14:35:03 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2018-07-13 14:35:03 -0400 |
commit | d8e500b2d785b6c8e12ceb25efe68c32aad46a8b (patch) | |
tree | b91a58b9e6e112f32c23d9aee866631131bf4fd6 /include/salticidae/ref.h | |
parent | b98265d732bad274f66de66cb93d891e9c41a112 (diff) |
finish Bits impl
Diffstat (limited to 'include/salticidae/ref.h')
-rw-r--r-- | include/salticidae/ref.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/salticidae/ref.h b/include/salticidae/ref.h index c0b77a3..7239402 100644 --- a/include/salticidae/ref.h +++ b/include/salticidae/ref.h @@ -131,6 +131,7 @@ class BoxObj<T[], D>: public _BoxObj<T, D> { BoxObj(BoxObj<T_[]> &&other): base_t(std::move(other)) {} T &operator[](size_t idx) { return base_t::obj[idx]; } + const T &operator[] (size_t idx) const { return base_t::obj[idx]; } }; template<typename T, typename D = default_delete<T>, typename T_, typename D_> |