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
 C++: Don't add parantheses to &function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

oliveri
New Member

Germany
2 Posts

Posted - Mar 31 2009 :  10:18:12 AM  Show Profile  Reply with Quote
I am working a lot with function pointers, especially with member function pointers. When I'm writing "&class::method" VAX will automatically insert the method name AND parentheses, which is not what I want, so I have to delete them manually.
I know there is the ambiguous case when you want the address of a return value of a function but that may be a more rare case.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 31 2009 :  5:05:59 PM  Show Profile  Reply with Quote
We are considering doing this at some point:

case=7802
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jun 12 2009 :  9:03:26 PM  Show Profile  Reply with Quote
case=7802 is fixed in build 1727
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Jun 15 2009 :  09:22:15 AM  Show Profile  Reply with Quote
Finally! Thanks :D :D
Go to Top of Page

tandr
Senior Member

43 Posts

Posted - Jun 15 2009 :  12:52:07 PM  Show Profile  Reply with Quote
no, it did not... :(

#include <string>
#include <boost/bind.hpp>
#include <boost/function.hpp>

namespace a { namespace b { namespace c { 
   std::string function_abc(int i1, int i2);
}}}

void func2()
{
    boost::function<void()> f = boost::bind(&a::b::c::function_abc(|)
}


bold part got inserted if by VAX if you choose function_abc from suggestions
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jun 16 2009 :  4:32:33 PM  Show Profile  Reply with Quote
We have reopened case=7802. Thanks for the sample code.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Aug 22 2009 :  7:18:40 PM  Show Profile  Reply with Quote
There was an additional problem with case=7802 when namespaces were present. This is fixed in build 1731.

Whole Tomato Software, Inc.
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