domp domp - 1 year ago 105
C++ Question

Capture values for firebase transaction

How can I capture values when creating a firebase transaction? Even the code example for transactions inside the firebase docs doesn't work, it gives me the following errors:

Variable 'score' cannot be implicitly captured in a lambda with no capture-default specified
Variable 'email' cannot be implicitly captured in a lambda with no capture-default specified


What is going on here? Shouldn't there be an option to pass data like it's done for Future onCompletion callbacks? I'm using the latest firebase c++ framework by the way (4.0.2)

Answer Source

I solved my problem by switching to the aws c++ sdk.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download