From 3caea5991ac1f28b6f9f65e36fed4e4e59d56734 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Mon, 9 Jul 2018 10:56:41 -0400 Subject: [PATCH] Fix PutCallback type comparison. Fix #112 --- src/client/clientGet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/clientGet.cpp b/src/client/clientGet.cpp index 7cbe3e4..0bbdb63 100644 --- a/src/client/clientGet.cpp +++ b/src/client/clientGet.cpp @@ -117,7 +117,7 @@ struct GetPutter : public pva::ChannelPutRequester, cb->putBuild(structure, args); if(!args.root) throw std::logic_error("No put value provided"); - else if(args.root->getStructure().get()!=structure.get()) + else if(*args.root->getStructure()!=*structure) throw std::logic_error("Provided put value with wrong type"); }catch(std::exception& e){ if(putcb) {