summaryrefslogtreecommitdiffstats
path: root/include/o3tl/enumarray.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-02 15:58:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-02 16:30:34 +0200
commit44b3e56bb4a4df59f53447c4ca4d8e02fe926206 (patch)
tree71a9efde3a6a2a00688e8feb8e3086cb32eceb4f /include/o3tl/enumarray.hxx
parentModel o3tl::enumarray after std::array to allow aggregate initialization (diff)
downloadcore-44b3e56bb4a4df59f53447c4ca4d8e02fe926206.tar.gz
core-44b3e56bb4a4df59f53447c4ca4d8e02fe926206.zip
Change INetProtocol to scoped enumeration
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
Diffstat (limited to 'include/o3tl/enumarray.hxx')
-rw-r--r--include/o3tl/enumarray.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/o3tl/enumarray.hxx b/include/o3tl/enumarray.hxx
index b476cb3671d2..6bc3dff7a608 100644
--- a/include/o3tl/enumarray.hxx
+++ b/include/o3tl/enumarray.hxx
@@ -51,7 +51,7 @@ public:
static const size_type max_index = static_cast<size_type>(E::LAST);
- const V operator[](E index) const
+ const V& operator[](E index) const
{
assert(index>=static_cast<E>(0) && index<=E::LAST);
return detail_values[static_cast<size_type>(index)];