News for hackers. Stuff that matters.
Re:The C++14 Standard: What You Need to Know by raverbashing on Wednesday September 17, 2014 @10:21AM (#8330079)
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)

Re:The C++14 Standard: What You Need to Know by Ragnarork on Wednesday September 17, 2014 @11:01AM (#8330315)
Except you may have a conversion and you don't know it.