Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 refactor option: toggle to trailing-return layout
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Adequat
Tomato Guru

182 Posts

Posted - Nov 30 2016 :  1:24:38 PM  Show Profile  Reply with Quote
int getMulticastHops() const;

vs

auto getMulticastHops() const -> int;

http://arne-mertz.de/2016/11/trailing-return-types-everywhere/

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 01 2016 :  09:16:12 AM  Show Profile  Reply with Quote
The linked post talks about the overuse of trailing return types. Are you asking a command to convert from trailing type to normal?
Go to Top of Page

Adequat
Tomato Guru

182 Posts

Posted - Dec 05 2016 :  07:14:02 AM  Show Profile  Reply with Quote
>>Are you asking a command to convert from trailing type to normal?

No, the opposite, from normal to trailing (though both operations would be fine)
I just quoted the link to point to some kind of reference on the topic.
Here you can see good arguments to use the trailing type:
https://www.reddit.com/r/cpp/comments/5fqce7/trailing_return_types_everywhere/
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 05 2016 :  8:05:58 PM  Show Profile  Reply with Quote
I have opened a feature request for this:

case=101995
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000