pw_sync: Fixed InlineBorrowable constructor ambiguity There is ambiguity about which constructor to invoke when constructing an inline object that has a single construtor argument using the in-place syntax with an lvalue parameter. Added enable_if guards so that the factory-function constructors are only instantiated for compatible callables. Change-Id: I7db859bf4b4cf31491c10d1bd9105f34b11a133d Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/111290 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Anton Markov <amarkov@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.