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
 Not recognizing template containers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

steve_dercks
Junior Member

USA
17 Posts

Posted - Feb 18 2009 :  2:44:15 PM  Show Profile  Reply with Quote
Here is a short bit of code...



No suggestions are offered for list elements and highlighting is wrong.

VA_X.dll file version 10.5.1715.0 built 2009.01.25
Licensed to:
VA X: [email protected] (1-user license) Support ends 2009.12.19
MSDev.exe version 6.0.9782.1
Devshl.dll version 6.0.9782.0
Devedit.pkg version 6.0.9782.0
Font: Courier -13(Pixels)
Comctl32.dll version 5.81.4968.2500
Windows 2000 5.0 Build 2195 Service Pack 4
Single processor

Platform: Win32 (x86)
Stable Includes:
C:\\PROGRAM FILES\\MICROSOFT VISUAL STUDIO .NET 2003\\VC7\\PLATFORMSDK\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;
C:\\PROGRAM FILES\\COMMON FILES\\SYSTEM\\ADO;
C:\\POET61\\INC;
D:\\SDEV\\LORAMINC;
D:\\SDEV\\LORAMINCPOET;
D:\\SDEV\\MCL\\INCLUDE;
C:\\PROESSENTIALS5\\VC;
D:\\SDEV\\NLREG;

Other Includes:

Stable Source Directories:
D:\\SDEV\\LORAMSRC;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\SRC;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\CRT\\SRC;

VC++ 6.0

Edited by - steve_dercks on Feb 19 2009 07:52:45 AM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Feb 18 2009 :  6:14:09 PM  Show Profile  Reply with Quote
Your picture link points to a local file. Can you please upload it to a free image hosting service, e.g. www.photobucket.com, so you can post a link to the uploaded file. Or you can send the picture to us, via the form:

www.wholetomato.com/support/contact.asp" target="_blank">http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Feb 19 2009 :  5:14:28 PM  Show Profile  Reply with Quote
The picture is loading now. Thank you for the very clear example, I am seeing the same problem here:

case=24175

are you only seeing problems with [] on std::deque, or are you seeing problems with other members of this class?

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

steve_dercks
Junior Member

USA
17 Posts

Posted - Feb 20 2009 :  08:21:22 AM  Show Profile  Reply with Quote
Maybe it's just the [] operator. You see it is the same with the vector container.


#include "stdafx.h"
#include <deque>
#include <vector>

struct simplestruct
{
int IntMember;
long LongMember;
};


int main(int argc, char* argv[])
{

std::deque<simplestruct> queue;
std::vector<simplestruct> vect;

simplestruct item;

queue.push_back(item);
vect.push_back(item);

queue[0].IntMember = 100;
vect[0].LongMember = 1000L;

int n = queue[0].IntMember;
long l = vect[0].LongMember;
return 0;
}

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Feb 20 2009 :  4:34:18 PM  Show Profile  Reply with Quote
Its not a global problem with operator [], I have just checked, and VA is working correctly for three different test classes that overload this operator, including CArray.

More than that, I am seeing NO problems with the following code:

#include <deque>
#include <vector>

struct simplestruct
{
    int IntMember;
    long LongMember;
};


static void testUnderliningAfterStdItem()
{
    std::deque<simplestruct> queue;
    std::vector<simplestruct> vect;

    simplestruct item;

    queue.push_back(item);
    vect.push_back(item);

    queue[0].IntMember = 100;
    vect[0].LongMember = 1000L;

    int n = queue[0].IntMember;
    long l = vect[0].LongMember;
}



yet I am seeing a problem with the code:


#include <deque>

struct simpleStructDeque
{
    int nIntMember;
    long nLongMember;
};

static void testUsingDeque()
{
    std::deque<simpleStructDeque> listFoo;
    simpleStructDeque stItem;
    listFoo.push_back(stItem);
    listFoo[0].nIntMember = 10; // underlining here
};


I do not see what is triggering this problem. Most odd.

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

steve_dercks
Junior Member

USA
17 Posts

Posted - Feb 20 2009 :  10:44:30 PM  Show Profile  Reply with Quote
I have problems with your first example. I didn't get underlining after pasting the code into the editor, but after I hit reparse file it underlined. I also can't refactor either one.
For example type vect[0]. and you get no suggestions.
Type vect. and you will get the normal vector methods suggested.
Go to Top of Page

steve_dercks
Junior Member

USA
17 Posts

Posted - Feb 23 2009 :  08:33:14 AM  Show Profile  Reply with Quote
Here's what I get for the vector...

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Feb 23 2009 :  5:29:22 PM  Show Profile  Reply with Quote
I am seeing the same result with this code when I add it to a new, empty C++ console workspace in VC6. I am not sure why it works in my main test solution, something else in the solution is obviously having an effect.

Most strange. Hopefully our developers can make more sense of this.

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