diff options
author | Stefan Klug <stefan.klug@ideasonboard.com> | 2025-04-03 17:49:07 +0200 |
---|---|---|
committer | Stefan Klug <stefan.klug@ideasonboard.com> | 2025-05-20 09:46:11 +0200 |
commit | 5234e4936fab07a3540f8e6ae87d70579a51cfcc (patch) | |
tree | b46581dc92c6a5b08038dc6b7dddd777e6484081 /src/py/examples | |
parent | 1d8a6db31c25bae39ece02efa565bcec8d1b0a03 (diff) |
libcamera: matrix: Make most functions constexpr
By zero-initializing the data_ member we can make most functions
constexpr which will come in handy in upcoming patches. Note that this
is due to C++17. In C++20 we will be able to leave data_ uninitialized
for constexpr. The Matrix(std::array) version of the constructor can
not be constexpr because std::copy only became constexpr in C++20.
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src/py/examples')
0 files changed, 0 insertions, 0 deletions