About proxySwap
Dmitri via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 8 01:30:44 PDT 2015
This was this one time when I was storing vibe's Bson objects in
the array that I tried to use one of the mutation algorithms on
it: bringToFront, and it did not work. At the time I had no idea
of proxySwap but the Bson type apparently had one implemented
according to the swap specialization used.
After a bit of head scratching, I figured the opDispatch is
making the type look like it has anything implemented, so the
question is:
How do I use mutation on sequences of (probably library) types
with opDispatch but no proxySwap? Is wrapping the only
alternative?
-dmitri.
More information about the Digitalmars-d
mailing list