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
Topic
Adequat
Tomato Guru
182 Posts
Posted - Nov 30 2016 : 1:24:38 PM
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
The linked post talks about the overuse of trailing return types. Are you asking a command to convert from trailing type to normal?
Adequat
Tomato Guru
182 Posts
Posted - Dec 05 2016 : 07:14:02 AM
>>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/
accord
Whole Tomato Software
United Kingdom
3287 Posts
Posted - Dec 05 2016 : 8:05:58 PM
I have opened a feature request for this:
case=101995
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Visual Assist
Technical Support
Feature Requests
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
© 2023 Whole Tomato Software, LLC
Snitz Forums 2000