boost version 1.86 support
Added fix for boost::asio::spawn overload issue reported similar
to chriskohlhoff/asio#1524, during boost 1.86 migration build.
Proposed fix is to use default completion token.
Tested: verified build
Change-Id: Ie3ebcf963f998fd6064e8efab49d1fe584d4b587
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/dbus-sdr/storagecommands.cpp b/dbus-sdr/storagecommands.cpp
index 125e89e..fbc0c98 100644
--- a/dbus-sdr/storagecommands.cpp
+++ b/dbus-sdr/storagecommands.cpp
@@ -346,9 +346,11 @@
});
// call once to populate
- boost::asio::spawn(*getIoContext(), [](boost::asio::yield_context yield) {
- replaceCacheFru(getSdBus(), yield);
- });
+ boost::asio::spawn(*getIoContext(),
+ [](boost::asio::yield_context yield) {
+ replaceCacheFru(getSdBus(), yield);
+ },
+ {});
}
/** @brief implements the read FRU data command