diff --git a/src/list.cpp b/src/list.cpp index ac5a6ecf..348c603e 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -39,7 +39,7 @@ size_t List::size() const return m_link_view->size(); } -Row List::get(size_t row_ndx) const +RowExpr List::get(size_t row_ndx) const { verify_attached(); verify_valid_row(row_ndx); diff --git a/src/list.hpp b/src/list.hpp index c2d6f21f..18165e6d 100644 --- a/src/list.hpp +++ b/src/list.hpp @@ -24,6 +24,9 @@ #include namespace realm { +template class BasicRowExpr; +using RowExpr = BasicRowExpr; + class ObjectSchema; class Realm; @@ -37,7 +40,7 @@ public: Query get_query() const; size_t size() const; - Row get(size_t row_ndx) const; + RowExpr get(size_t row_ndx) const; void set(size_t row_ndx, size_t target_row_ndx); void add(size_t target_row_ndx);