[libcamera-devel] [PATCH 1/6] Documentation: coding_style: Add move semantics to C++11 features
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Mon Jan 21 01:59:25 CET 2019
Add the move semantics (move constructor and move assignment) to the
allowed C++11 features, as we extensively use them for the unique and
shared pointers.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
Documentation/coding-style.rst | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/coding-style.rst b/Documentation/coding-style.rst
index 66db3cebe132..30a1455d8c65 100644
--- a/Documentation/coding-style.rst
+++ b/Documentation/coding-style.rst
@@ -80,6 +80,7 @@ C++-11-specific features:
Smart pointers, as well as shared pointers and weak pointers, shall not be
overused.
* Variadic class and function templates
+* rvalue references, move constructor and move assignment
Object Ownership
~~~~~~~~~~~~~~~~
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list