Project

General

Profile

Bug #20579

FindManyP with ProductToken doesn't check types

Added by Christopher Backhouse about 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Infrastructure
Target version:
Start date:
08/09/2018
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:
Occurs In:
Scope:
Internal
Experiment:
-
SSI Package:
art
Duration:

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 about 1 year 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 5 months 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 4 months ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF