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
 Make make_unique<T> give suggestions of T ctor
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Z01
Junior Member

13 Posts

Posted - May 15 2019 :  05:21:25 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - May 15 2019 :  08:29:55 AM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
Go to Top of Page

Z01
Junior Member

13 Posts

Posted - May 16 2019 :  07:13:58 AM  Show Profile  Reply with Quote
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.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - May 17 2019 :  09:44:45 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

Z01
Junior Member

13 Posts

Posted - May 22 2019 :  06:42:48 AM  Show Profile  Reply with Quote
Thank you for a suggestion, will try that.
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