The Open Screen Library follows the Chromium C++ coding style. We also follow the Chromium C++ Do‘s and Don’ts.
C++14 language and library features are allowed in the Open Screen Library according to the C++14 use in Chromium guidelines.
ErrorOr<T>
.Use the following guidelines when deciding on copy and move semantics for objects.
We prefer the use of default
and delete
to declare the copy and move semantics of objects. See Stoustrop's C++ FAQ for details on how to do that.
We prefer to use noexcept
on move constructors. Although exceptions are not allowed, this declaration enables STL optimizations.
Blink style is not allowed anywhere in the Open Screen Library.
C++17-only features are currently not allowed in the Open Screen Library.