T O P I C R E V I E W |
mintonla |
Posted - Jan 21 2022 : 10:35:56 AM Have code looking like:
class Value; class ReferenceTarget; class Interval;
typedef Value* (Value::*value_vf)(Value**, int); typedef Value* (*value_cf)(Value**, int); typedef Value* (Value::*getter_vf)(Value**, int); typedef Value* (Value::*setter_vf)(Value**, int); typedef Value* (*max_getter_cf)(ReferenceTarget*, Value*, TimeValue, Interval&); typedef void (*max_setter_cf)(ReferenceTarget*, Value*, TimeValue, Value*);
Getting 6 'Typedef can be converted to 'using' declaration'. If I do a Apply All, resulting code is:
class Value; class ReferenceTarget; class Interval;
using value_vf = Value* (Value::*)(Value**, int); type; using value_cf = Value *(*)(Value **, int); type; using getter_vf = Value *(Value::*)(Value **, int); typed; using setter_vf = Value *(Value::*)(Value **, int); typed; using max_getter_cf = Value *(*)(ReferenceTarget *, Value *, TimeValue, Interval &); typedef v; using max_setter_cf = void (*)(ReferenceTarget *, Value *, TimeValue, Value *);
Running 10.92440.0, VS2019. Thanx, Larry
|
1 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Jan 24 2022 : 10:43:17 AM That's really odd, but I am seeing the same result here, thank you for the very clear bug report:
case=147734
In case you haven't realised it, if you use Code Inspection on each typedef, one by one, you get the right result, without the extra bits, which is rather reassuring. |
|
|