diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-05-21 22:16:23 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-05-23 11:54:39 +0300 |
commit | 1f32abb995a04b7c67af6d923fea82436e817de1 (patch) | |
tree | 257edb05de72a0c6eb5bfd2786a7612afc1cd908 /test/v4l2_device/capture_async.cpp | |
parent | 8d846ed8a7d9d7c9783472a618a7f369f0843e67 (diff) |
libcamera: camera: Simplify create() implementation
Now that the Camera class inherits from std::enable_shared_from_this, we
don't need to use std::allocate_shared anymore and can simplify the
Camera::create() implementation. This fixes compilation with recent
versions of libc++ whose std::allocate_shared implementation isn't
compatible with classes that are not publicly constructible.
The custom allocator is removed, but a custom deleter is needed as the
Camera destructor is private.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/v4l2_device/capture_async.cpp')
0 files changed, 0 insertions, 0 deletions