Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Make make_unique<T> give suggestions of T ctor

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Z01 Posted - May 15 2019 : 05:21:25 AM
Hi,
I often use make_unique<T>( only to find out that suggestions showing up are 2 overloads of make_unique instead of ctor arguments of T.

I would like to have option to override the default behavior.






Similar feature is probably desirable for std::make_shared but I use std::make_unique much more frequently.
4   L A T E S T    R E P L I E S    (Newest First)
Z01 Posted - May 22 2019 : 06:42:48 AM
Thank you for a suggestion, will try that.
feline Posted - May 17 2019 : 09:44:45 AM
Another thought that might help, if you just want to double check the parameter information / constructor overloads.

Place the caret into the class name that you are passing to make_unique<> and press Alt-Shift-G for VA's Goto Related menu. So long as VA has identified one or more constructors, these will be listed in the constructors sub-menu, which will show the parameters for each constructor found.
Z01 Posted - May 16 2019 : 07:13:58 AM
Hi,
thank you for quick answer and suggestion. VA View works ok(I did not know that, so thank you), but I still hope make_unique feature will be implemented since it is quite common usecase for my workflow, and even small improvements quickly add up.
feline Posted - May 15 2019 : 08:29:55 AM
This is something we are considering trying at some point in time:

case=114529

for now, are you aware that if you have VA View showing, with keyboard focus in the editor, you can hover the mouse over the type you are passing to the template, "std::string" in this case, and VA View will show you information about this type in the bottom section? Not really the same, but still fairly useful at times.

https://docs.wholetomato.com/default.asp?W222

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000