summaryrefslogtreecommitdiff
path: root/src/android/camera_ops.h
diff options
context:
space:
mode:
authorStefan Klug <stefan.klug@ideasonboard.com>2025-04-03 17:49:06 +0200
committerStefan Klug <stefan.klug@ideasonboard.com>2025-05-20 09:46:11 +0200
commit1d8a6db31c25bae39ece02efa565bcec8d1b0a03 (patch)
tree52b3fe898a85411682789e3412319191c7402a81 /src/android/camera_ops.h
parent0069b9ceb1e03d5887ac614e35d79602b003ff27 (diff)
libcamera: matrix: Replace SFINAE with static_asserts
SFINAE is difficult to read and not needed in these cases. Replace it with static_asserts. The idea came from [1] where it is stated: "The use of enable_if seems misguided to me. SFINAE is useful for the situation where we consider multiple candidates for something (overloads or class template specializations) and try to choose the correct one, without causing compilation to fail." [1]: https://stackoverflow.com/questions/62109526/c-friend-template-that-use-sfinae Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Diffstat (limited to 'src/android/camera_ops.h')
0 files changed, 0 insertions, 0 deletions