From 44b3e56bb4a4df59f53447c4ca4d8e02fe926206 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 2 Apr 2015 15:58:06 +0200 Subject: Change INetProtocol to scoped enumeration ...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b --- include/o3tl/enumarray.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/o3tl/enumarray.hxx') 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(E::LAST); - const V operator[](E index) const + const V& operator[](E index) const { assert(index>=static_cast(0) && index<=E::LAST); return detail_values[static_cast(index)]; -- cgit