Fix PutCallback type comparison. Fix #112
This commit is contained in:
committed by
mdavidsaver
parent
1a459d75d5
commit
3caea5991a
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user