Support operator*/-> in new flatbuffers API
This was suggested during the initial reviews, and does seem to reduce a
fair amount of overhead.
Change-Id: Icb22106612c3a8430afa0b9dbe0a85f835e5b821
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/events/ping_lib.cc b/aos/events/ping_lib.cc
index 23de0db..cd36378 100644
--- a/aos/events/ping_lib.cc
+++ b/aos/events/ping_lib.cc
@@ -40,9 +40,9 @@
++count_;
aos::Sender<examples::PingStatic>::StaticBuilder builder =
sender_.MakeStaticBuilder();
- examples::PingStatic *ping = builder.get();
- ping->set_value(count_);
- ping->set_send_time(event_loop_->monotonic_now().time_since_epoch().count());
+ builder->set_value(count_);
+ builder->set_send_time(
+ event_loop_->monotonic_now().time_since_epoch().count());
builder.CheckOk(builder.Send());
VLOG(2) << "Sending ping";
}