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
 Technical Support
 C++: Incorrect autocomplete of std::function param
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dave_lf
Junior Member

15 Posts

Posted - Jul 31 2013 :  10:04:33 AM  Show Profile  Reply with Quote
Declare a function like so:

void f( std::function<void( int )> p1, int p2 );

Now start typing the definition. Hit tab after the open paren to trigger autocomplete. You'll get this:

void someFunc(std::function<void

and nothing else.

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Jul 31 2013 :  2:07:42 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=1248

If you use Create Implementation instead then the parameters are all handled correctly:

http://www.wholetomato.com/products/features/createImplementation.asp

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

dave_lf
Junior Member

15 Posts

Posted - Jul 31 2013 :  2:24:38 PM  Show Profile  Reply with Quote
Thanks. I should point out that in my original post, the fact that the function name was "f" in the first example and "someFunc" in the second was just a typo on my part.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Jul 31 2013 :  4:24:10 PM  Show Profile  Reply with Quote
I did not even notice the typo in the original post You conveyed the problem you were seeing very clearly, so I was focussing on that. I am glad I did not miss anything to important.

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

support
Whole Tomato Software

5566 Posts

Posted - Sep 25 2013 :  4:35:44 PM  Show Profile  Reply with Quote
case=1248 is fixed in build 2001.
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