Author |
Topic |
|
mintonla
New Member
USA
6 Posts |
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
|
|
feline
Whole Tomato Software
United Kingdom
19060 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|
|
|