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
 Template and Namespace (boost)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Avi Bueno
New Member

6 Posts

Posted - Jul 09 2007 :  10:37:01 AM  Show Profile  Reply with Quote
Hi,

I guess I have another (yet different) namespace related problem..

Using the following code:
--
class Test
{
public:
	void funcATest() {}
};

void f()
{
	boost::shared_ptr<Test> pTest;
}
--
When I type pTest->, VA doesn't parse anything..


I tried the following:
--
using namespace boost;
void f()
{
	shared_ptr<Test> pTest;
}
--
But still nothing..


The real problem is that my goal is to have VA properly parse the following code:
--
class Test
{
public:
	boost::shared_ptr<Test>	SP;
	
	void funcATest() {}
};

void f()
{
	Test::SP pTest;
}
--

The previous samples are merely regression tests for this last one.

Any ideas?

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 09 2007 :  10:53:28 AM  Show Profile  Reply with Quote
Which IDE and version of VA are you using?

I have just tried you first example using VS2005 and VA 1559 and VA produced the correct suggestion for me.

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

Avi Bueno
New Member

6 Posts

Posted - Jul 09 2007 :  10:57:33 AM  Show Profile  Reply with Quote
Oops.. I meant to paste the info..


VA_X.dll file version 10.3.1555.0 built 2007.04.26
Licensed to:
VA X: [email protected] (22-user license) Support ends 2007.07.20
VAOpsWin.dll version 1.3.2.0
VATE.dll version 1.0.5.4
DevEnv.exe version 8.0.50727.762
msenv.dll version 8.0.50727.762
Font: Courier New 13(Pixels)
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
2 processors

Platform: Win32
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfcm;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\crt\\src;
Y:\\xl\\Stingray\\Studio_2006\\src\\Grid;

Other Includes:

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 09 2007 :  1:08:16 PM  Show Profile  Reply with Quote
Interesting. I have just checked and your first example is working correctly for me with VA 1555.

The obvious difference is that I have added:

C:\\boost\\boost_1_33_1\\boost;

to the list of stable include directories, by adding it to the IDE's include directory list.

If you use alt-g on "shared_ptr" does VA offer you a destination? I am wondering if VA is seeing the header file. If it does not properly understand boost::shared_ptr then you are not going to get the correct results.

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