OSDN Git Service

adapter/operator/indexer.hpp: まちがってる
authormyun2 <myun2@nwhite.info>
Wed, 6 Jun 2012 17:49:39 +0000 (02:49 +0900)
committermyun2 <myun2@nwhite.info>
Wed, 6 Jun 2012 17:49:39 +0000 (02:49 +0900)
roast/include/roast/adapter/operator/indexer.hpp

index cf60a55..2d7d885 100644 (file)
@@ -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) {}