pubsub: Initial set of events; update Event type check
- Create an initial std::variant of events. These are intended only as
rough examples are subject to change.
- Replace std::enable_if on the constructor with a static_assert on the
class that checks that all std::variant elements are trivially
copyable, trivially destructible, and standard layout.
- Apply formatting fixes.
Change-Id: Icaab843788699b6b3ee745ec181efb77a405d9b2
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/rp2/+/220739
Commit-Queue: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
11 files changed