summaryrefslogtreecommitdiff
path: root/test/span.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-04-13 02:40:40 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-04-15 22:23:02 +0300
commit1ad214dd1b353e79923ec6d6dfd4246759e99407 (patch)
tree230b68485c32562078b19730cd4348bf24210f42 /test/span.cpp
parentc244d07286e4010ee884eeea6f8e67fa5d1ff3cb (diff)
libcamera: span: Fix reverse iterators
std::reverse_iterator<iterator> is constructed from an instance of iterator, and automatically subtracts 1 when dereferencing. rbegin() and rend() should thus be constructed from end() and begin() respectively. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/span.cpp')
0 files changed, 0 insertions, 0 deletions