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++: Adding parantheses to function pointers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Frunobulax
Ketchup Master

84 Posts

Posted - Oct 14 2007 :  05:49:15 AM  Show Profile  Reply with Quote
Hi,

I would like VAX to not add parantheses if I want to pass a function object. Thus, when typing

boost::bind(&MyClass::myFunction, [...])

VAX should no longer try to add paranthesis after myFunction.

Version is 1609.

Regards, Thomas

"The nice part about being a pessimist
is that you are constantly being either
proven right or pleasantly surprised."
(George F. Will)

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Oct 15 2007 :  12:31:20 PM  Show Profile  Reply with Quote
We are considering doing this:

case=7802

See here for the original discussion about this.

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=6465

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

Frunobulax
Ketchup Master

84 Posts

Posted - Oct 16 2007 :  06:22:49 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

We are considering doing this:

case=7802



Ah, I see. Good.

Stupid question: Where can I see the open cases? I usually try to check open bugs before reporting something, but couldn't find a public bug tracker.

Regards, Thomas

"The nice part about being a pessimist
is that you are constantly being either
proven right or pleasantly surprised."
(George F. Will)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Oct 17 2007 :  07:46:06 AM  Show Profile  Reply with Quote
This should help a little bit:

http://docs.wholetomato.com?W318

Most bugs get reported on the forum sooner or later, so searching the forum is a good way to start.

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

sean
Whole Tomato Software

USA
2817 Posts

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

tandr
Senior Member

43 Posts

Posted - Jun 15 2009 :  4:12:59 PM  Show Profile  Reply with Quote
I still have the same problem with func pointers. Or there is some checkbox that I need to toggle in order to make it work?


#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


VA_X.dll file version 10.5.1727.0 built 2009.06.12
Licensed to:
VA X: [email protected] (1-user license) Support ends 2010.02.04
DevEnv.exe version 9.0.30729.1
msenv.dll version 9.0.30729.1
Font: Consolas 11(Pixels)
Comctl32.dll version 6.0.2900.5512
Windows XP 5.1 Build 2600 S
2 processors (x86)

Platform: Win32
Stable Includes:
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\include;
D:\\Program Files\\Microsoft SDKs\\Windows\\v6.1\\include;
D:\\Program Files\\Microsoft SDKs\\Windows\\v6.1\\include;
E:\\svn\\repos\\3rd\\boost\\tags\\Boost_1_39_0;

Other Includes:

Stable Source Directories:
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfc;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfcm;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\atl;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\crt\\src;

Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jun 16 2009 :  4:32:20 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:19:05 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