jamesu / xtal-language

Automatically exported from code.google.com/p/xtal-language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xarray::iteratorのポストインクリメントが、プリインクリメントと同じ動作になっています

GoogleCodeExporter opened this issue · comments

xtal_array.h(187)にある、xarray::iterator::operator++(int) が

        iterator operator ++(int){
            iterator temp(*this);
            ++p_;
            return *this;
        }

のようになっていて、イテレータのコピーを作ってはいる��
�ですが *this を返して
いるため、ポストインクリメントではなくプリインクリメ��
�トになっていると思い
ます。
動かしたときに動作がおかしいとかは確認していませんが��
�意図している動作とは
違うと思われますので、念のため報告します。

Original issue reported on code.google.com by mokehehe@gmail.com on 9 Dec 2009 at 8:45

すいません、使われていなかったので気づきませんでした��
�
修正してコミットしました。

Original comment by dof...@gmail.com on 5 Jan 2010 at 11:08

  • Changed state: Fixed