Skip to content

Functor initialization failure for value based argument with const argument. #107

@eigen-frog

Description

@eigen-frog

Method -

unsigned int Person::getAge(const Date);

Accessing it at runtime, obtaing the functor as,

auto getAge = fnGetAge->targetT< Person >()
.argsT< const nsdate::Date >()
.returnT();

fails to initialize the functor with error : rtl::error::SignatureMismatch

but,

auto getAge = fnGetAge->targetT< Person >()
.argsT< const nsdate::Date >()
.returnT< unsigned >();
succeeds,

The difference in arguments used to materialize the functor , Date & const Date

Expecetd behaviour,
It should work regardless of 'const' for value based arguments.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions