summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/path-search-result.cpp2
-rw-r--r--src/path-search-result.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/path-search-result.cpp b/src/path-search-result.cpp
index d805bd31..afc4bf59 100644
--- a/src/path-search-result.cpp
+++ b/src/path-search-result.cpp
@@ -93,7 +93,7 @@ const point& path_search_result::operator[](size_t index) const
fm_debug_assert(index < _node->vec.size());
return data()[index];
}
-vector_wrapper<point> path_search_result::raw_path() { fm_assert(_node); return {_node->vec}; }
+vector_wrapper<point, vector_wrapper_repr::lvalue_reference_to_vector> path_search_result::raw_path() { fm_assert(_node); return {_node->vec}; }
ArrayView<const point> path_search_result::path() const { fm_assert(_node); return {_node->vec.data(), _node->vec.size()}; }
} // namespace floormat
diff --git a/src/path-search-result.hpp b/src/path-search-result.hpp
index b12b23d3..d29fdc44 100644
--- a/src/path-search-result.hpp
+++ b/src/path-search-result.hpp
@@ -24,7 +24,7 @@ struct path_search_result final
uint32_t distance() const;
void set_distance(uint32_t dist);
- vector_wrapper<point> raw_path();
+ vector_wrapper<point, vector_wrapper_repr::lvalue_reference_to_vector> raw_path();
ArrayView<const point> path() const;
explicit operator ArrayView<const point>() const;
explicit operator bool() const;