Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Template and Namespace (boost)

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
Avi Bueno Posted - Jul 09 2007 : 10:37:01 AM
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?
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 09 2007 : 1:08:16 PM
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.
Avi Bueno Posted - Jul 09 2007 : 10:57:33 AM
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:

feline Posted - Jul 09 2007 : 10:53:28 AM
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.

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