Bug #20579
FindManyP with ProductToken doesn't check types
Occurs In:
Scope:
Internal
Experiment:
-
SSI Package:
art
Description
The following code seems to compile
art::ProductToken<A> atoken = consumes<A>("a");
art::ProductToken<std::vector<B>> btoken = consumes<std::vector<B>>("b");
...
art::Handle<std::vector<B>> bs;
evt.getByToken(btoken, bs);
art::FindManyP<C> fmp(bs, evt, atoken);
but atoken
is for a completely different type than the product that FindManyP
fetches. Shouldn't it be required to be something like ProductToken<Assns<B, C>>
?
History
#1 Updated by Kyle Knoepfel over 2 years ago
- Status changed from New to Assigned
- Assignee set to Kyle Knoepfel
- Estimated time set to 4.00 h
We will investigate.
#2 Updated by Kyle Knoepfel over 1 year ago
- % Done changed from 0 to 100
- Target version set to 3.03.00
- Status changed from Assigned to Resolved
- Category set to Infrastructure
- SSI Package art added
Implemented with commit canvas:7f978d2.
#3 Updated by Kyle Knoepfel over 1 year ago
- Status changed from Resolved to Closed