From 0541c7b14cb8a5f52762bed877297b4b4332045f Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sat, 22 Jun 2019 20:22:00 -0500 Subject: [PATCH] Fix compilation problems with newer soapysdr. Newer API versions overload SoapySDR::Device::unmake, and the compiler doesn't manage to infer the right overload to use, so explicitly select the one we want. --- soapy_source.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/soapy_source.cc b/soapy_source.cc index 128fa7a..b427b8e 100644 --- a/soapy_source.cc +++ b/soapy_source.cc @@ -152,7 +152,8 @@ SoapySampleSource::~SoapySampleSource() { Stop(); } void SoapySampleSource::Init() { try { - device_ = {SoapySDR::Device::make(device_name_), &SoapySDR::Device::unmake}; + void (*unmake)(SoapySDR::Device *) = &SoapySDR::Device::unmake; // select the right overload + device_ = {SoapySDR::Device::make(device_name_), unmake}; } catch (const std::runtime_error &err) { throw config_error(std::string("No matching SoapySDR device found (cause: ") + err.what() + ")"); }