diff --git a/tpie/packed_array.h b/tpie/packed_array.h index 327102631..7ffdb8845 100644 --- a/tpie/packed_array.h +++ b/tpie/packed_array.h @@ -300,10 +300,18 @@ class packed_array iter_return_type & operator*() { return elm; } + /////////////////////////////////////////////////////////////////////// + iter_return_type & operator*() const + { return const_cast(elm); } + /////////////////////////////////////////////////////////////////////// iter_return_type * operator->() { return &elm; } + /////////////////////////////////////////////////////////////////////// + iter_return_type * const operator->() const + { return &elm; } + /////////////////////////////////////////////////////////////////////// iter_base & operator=(const iter_base & o) {