Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Not recognizing template containers

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
steve_dercks Posted - Feb 18 2009 : 2:44:15 PM
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
7   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 23 2009 : 5:29:22 PM
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.
steve_dercks Posted - Feb 23 2009 : 08:33:14 AM
Here's what I get for the vector...

steve_dercks Posted - Feb 20 2009 : 10:44:30 PM
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.
feline Posted - Feb 20 2009 : 4:34:18 PM
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.
steve_dercks Posted - Feb 20 2009 : 08:21:22 AM
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;
}

feline Posted - Feb 19 2009 : 5:14:28 PM
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?
accord Posted - Feb 18 2009 : 6:14:09 PM
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.

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