ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer (#4465)

* ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer

With the support of C++20, we can use concepts to deduce if a type is an STL container or not.

* More agressive concept for stl containers

* Add -fconcepts

* Move to common namespace

* Add Common::IsBaseOf
This commit is contained in:
David 2020-08-03 21:28:54 +10:00 committed by GitHub
parent 6c7292de33
commit 9b75481755
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 64 additions and 30 deletions

View file

@ -60,6 +60,7 @@ else()
-Wmissing-declarations
-Wno-attributes
-Wno-unused-parameter
-fconcepts
)
if (ARCHITECTURE_x86_64)