I'm trying to use CERN's Root Reflex but am a bit confused. I noticed the first parameter is T& ret. That's the confusing part. The documentation has no mention of any such parameter. I just put an int, but it's throwing an exception, and I think it's the int. Exception:
Unhandled exception at 0x52167D3A (libReflex.dll) in application.exe: 0xC0000005: Access violation reading location 0x0000006F.
And, this is my code:
void call(std::string fname)
{
Reflex::Type T = Reflex::Type::ByName(fname);
Reflex::Member M = T.MemberAt(1);
int tst = 0;
M.Invoke<int>(tst);
}