diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-10-24 19:57:51 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-10-26 20:39:08 +0200 |
commit | 5aabf85d2c2075f912b6ffb6f90ff9583f20bab1 (patch) | |
tree | 5736c15234b04a02d73a5092920b2a0f0909d363 /test/event-thread.cpp | |
parent | 5e738eb4d52a694eff808cd075bb49115e974d07 (diff) |
libcamera: span: Make constructors explicit as required by C++20
The C++20 std::span class, after which Span is modelled, specifies four
constructors as explicit when extent is not dynamic_extent. Align our
implementation with those requirements.
A careful reviewer may notice that this change addresses five
constructors, not four. The reason is that the two constructors taking
Container and const Container parameters are not specified in C++20,
which uses a single constructor taking a range parameter instead. As
ranges are not available in C++17, the Container constructors are our
best effort at providing a similar feature.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/event-thread.cpp')
0 files changed, 0 insertions, 0 deletions