Fix PutCallback type comparison. Fix #112

This commit is contained in:
Bruno Martins
2018-07-09 10:56:41 -04:00
committed by mdavidsaver
parent 1a459d75d5
commit 3caea5991a

View File

@@ -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) {