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
 wrong $MethodArg$
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

diavo
Senior Member

Germany
31 Posts

Posted - Jun 16 2006 :  05:15:14 AM  Show Profile  Reply with Quote
The following code produces wrongly two arguments if using the Refactor-Document-Method:

bool CTest::Test(const QList<QPair<QString, quint16>> &i)
{
}

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jun 16 2006 :  09:30:31 AM  Show Profile  Reply with Quote
Does it work correctly if you separate the two right angle brackets? The compiler will have a problem with this, too. Try the following:

bool CTest::Test(const QList<QPair<QString, quint16> > &i)
{
}

Joe Pizzi
Go to Top of Page

mbobka
Ketchup Master

Russia
86 Posts

Posted - Jun 16 2006 :  8:30:43 PM  Show Profile  Reply with Quote
Compiler in VS2005 parses it correctly. It new feature of VS2005.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jun 16 2006 :  9:14:31 PM  Show Profile  Reply with Quote
The >> change was part of TR1 and made it into the standard. Along with:
delegating constructors
var arg macros
extern template declarations
implicit type declarations (determined by rhs type)

(see Pete Beckers columns in Dr Dobbs)
But I don't know how many of these are also supported by vs2005.
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jun 17 2006 :  01:23:26 AM  Show Profile  Reply with Quote
I see that VS 2005 now allows this. I knew it was part of TR1, but didn't think that VS 2005 had implemented any of TR1.

The question still remains: Does inserting a space between the symbols allow VA to work properly?

Joe Pizzi
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jun 17 2006 :  1:45:50 PM  Show Profile  Reply with Quote
even adding lots of spaces does not help. the code:

bool felineURL::Test(const QList < QPair < QString, quint16 > > &b) 
{

}


still gives me two parameters on document method.

case=1356

zen is the art of being at one with the two'ness
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