3 ms·
Edit: see child comments to see why this is a bad idea, at least with native types. Maybe typeid() is better You have a point there what you could do is: ret
by raverbashing 12y ago
Edit: see child comments to see why this is a bad idea, at least with native types. Maybe typeid() is better
You have a point there
what you could do is:
return (int)x;
return (YourClass)value;
(then the header and implementation are auto but you still know what the code is talking about
(Or just put the type there as usual)
- Ragnarork 12y agoExcept you may have a conversion and you don't know it.