OSDN Git Service
(root)
/
roast
/
roast.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07c2491
)
adapter/operator/indexer.hpp: まちがってる
author
myun2
<myun2@nwhite.info>
Wed, 6 Jun 2012 17:49:39 +0000
(
02:49
+0900)
committer
myun2
<myun2@nwhite.info>
Wed, 6 Jun 2012 17:49:39 +0000
(
02:49
+0900)
roast/include/roast/adapter/operator/indexer.hpp
patch
|
blob
|
history
diff --git
a/roast/include/roast/adapter/operator/indexer.hpp
b/roast/include/roast/adapter/operator/indexer.hpp
index
cf60a55
..
2d7d885
100644
(file)
--- 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) {}