summaryrefslogtreecommitdiff
path: root/point.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'point.cpp')
-rw-r--r--point.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/point.cpp b/point.cpp
index 0e80e7f..5422350 100644
--- a/point.cpp
+++ b/point.cpp
@@ -61,6 +61,7 @@ struct Point {
Point() : page(0), index(0) {}
Point(Page* page, uint16_t index) : page(page), index(index) {}
+ Point(const Buffer &b) : page(b.storage), index(0) {}
Point(const Point &p) : page(p.page), index(p.index) {}
bool operator==(Point p) {