Skip to content

Commit

Permalink
fixed error preventing builing on gcc 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ice0 committed May 26, 2018
1 parent 7974858 commit cb05b07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ETL/ETL/_pen.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ class generic_pen
typedef int value_type;
value_type x,y;
difference_type(value_type x, value_type y):x(x),y(y) { }
value_type &operator[](int i)const { return i?y:x; }
const value_type &operator[](int i) const { return i?y:x; }
value_type &operator[](int i) { return i?y:x; }
};

protected:
Expand Down

0 comments on commit cb05b07

Please sign in to comment.