Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 C++: Don't add parantheses to &function

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
oliveri Posted - Mar 31 2009 : 10:18:12 AM
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.
6   L A T E S T    R E P L I E S    (Newest First)
support Posted - Aug 22 2009 : 7:18:40 PM
There was an additional problem with case=7802 when namespaces were present. This is fixed in build 1731.
sean Posted - Jun 16 2009 : 4:32:33 PM
We have reopened case=7802. Thanks for the sample code.
tandr Posted - Jun 15 2009 : 12:52:07 PM
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
znakeeye Posted - Jun 15 2009 : 09:22:15 AM
Finally! Thanks :D :D
sean Posted - Jun 12 2009 : 9:03:26 PM
case=7802 is fixed in build 1727
accord Posted - Mar 31 2009 : 5:05:59 PM
We are considering doing this at some point:

case=7802

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