semantics change: allow referral just by ID

i.e. flat match, not deep equality.
This allows to send just an Ref (with the ID) over the
wire to refer to an complete object to be picked, moved
or deleted on the receiver side.
This commit is contained in:
Fischlurch 2015-11-01 02:20:54 +01:00
parent b149432512
commit 73eaa10caf

View file

@ -129,7 +129,7 @@ namespace diff{
throw error::State(_Fmt("Unable to %s element %s from target as demanded; "
"no (further) elements in target sequence") % oper % elm
, LUMIERA_ERROR_DIFF_CONFLICT);
if (*srcPos() != elm)
if (not srcPos()->matches(elm))
throw error::State(_Fmt("Unable to %s element %s from target as demanded; "
"found element %s on current target position instead")
% oper % elm % *srcPos()