diff --git a/src/buffer.hh b/src/buffer.hh index a2a1933e..e4410566 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -23,6 +23,12 @@ struct BufferCoord : LineAndColumn { BufferCoord(int line = 0, int column = 0) : LineAndColumn(line, column) {} + + template + explicit BufferCoord(const LineAndColumn& other) + : LineAndColumn(other.line, other.column) + { + } }; class BufferIterator