From 4a945589cdf50fd38acfa2ec5c696cf595adc0f3 Mon Sep 17 00:00:00 2001 From: myun2 Date: Thu, 7 Jun 2012 02:49:39 +0900 Subject: [PATCH] =?utf8?q?adapter/operator/indexer.hpp:=20=E3=81=BE?= =?utf8?q?=E3=81=A1=E3=81=8C=E3=81=A3=E3=81=A6=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- roast/include/roast/adapter/operator/indexer.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roast/include/roast/adapter/operator/indexer.hpp b/roast/include/roast/adapter/operator/indexer.hpp index cf60a553..2d7d8855 100644 --- a/roast/include/roast/adapter/operator/indexer.hpp +++ b/roast/include/roast/adapter/operator/indexer.hpp @@ -36,10 +36,10 @@ namespace roast _ValueType* m_ptr; protected: _ValueType& indexer(const _IndexType& idx) { - return *[m_ptr + idx]; + return *(m_ptr + idx); } const _ValueType& indexer(const _IndexType& idx) const { - return *[m_ptr + idx]; + return *(m_ptr + idx); } public: value_indexer_operator_adapter(_ValueType* ptr) : m_ptr(ptr) {} -- 2.11.0