You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a referenced-counted stairs object that I want to pass to another function. It requires calling lightScope on it to strip the RC context. I think the way to do that is to make sure that LightScopeOf works for it, but it looks like when the iterator is a StairsIterator, then LightScopeOf just returns the same type. Ideally it should just be a simple fix to adjust how LightScopeOf works to get working.
unittest {
import mir.ndslice.iterator: StairsIterator;
import mir.qualifier: LightScopeOf;
import mir.rc: RCI;
staticassert(is(LightScopeOf!(StairsIterator!(RCI!double, "+")) == StairsIterator!(RCI!double, "+"))); //passes but shouldn't (ideally)staticassert(is(LightScopeOf!(StairsIterator!(RCI!double, "+")) == StairsIterator!(double, "+"))); //fails, but should pass (ideally)
}
The text was updated successfully, but these errors were encountered:
I have a referenced-counted stairs object that I want to pass to another function. It requires calling
lightScope
on it to strip the RC context. I think the way to do that is to make sure thatLightScopeOf
works for it, but it looks like when the iterator is aStairsIterator
, thenLightScopeOf
just returns the same type. Ideally it should just be a simple fix to adjust howLightScopeOf
works to get working.The text was updated successfully, but these errors were encountered: