Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 boost::optional

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
ceumern Posted - Apr 06 2009 : 08:04:43 AM
Since I have not found any information on this, I'll start a new thread.

boost::optional support is still not working as expected. symbols within an optional are not available for code completion.

Is there any way to circumvent this or any intention to fix this in an upcoming build?

Microsoft Visual C++ 2005
Visual Assist X 10.5.1715.0
6   L A T E S T    R E P L I E S    (Newest First)
ceumern Posted - Apr 14 2009 : 04:33:39 AM
It works! Thanks a million!

Going to post this to our internal wiki ;)
accord Posted - Apr 09 2009 : 7:47:24 PM
I thought that there are no differences between VS2005 SP1 and VS2008 SP1 intellisense (because I have never seen any difference between their behavior), but I was wrong. I tested this workaround under VS2005 SP1, and it isn't working. Sorry about the false info.

It does work under VS2008 SP1, but it does not help you.

But I have good news. I developed a workaround for you, and yes, this time I tested under VS2005 SP1

First of all turn off

VA Options -> Advanced -> Listboxes -> Get content from default Intellisense

We have a file named stdafx.h in Visual Assist's installation directory, and it is used to help Visual Assist parsing difficult code. You can read more about this file and its exact location here:

http://docs.wholetomato.com?W302

I've created a simplified version for "boost::optional":

namespace boost {
	template<typename T> class optional {
		T* operator->()
		{
			
		}
	};
}

If you paste this code into the end of this stdafx.h, boost::optional will work while you keep recursive macro parsing off (this is the default). If you didn't followed the steps here

http://docs.wholetomato.com?W363

then it is turned off.

This way Visual Assist will recognize the -> operator and will parse the rest of the original optional template class so you will get the correct items also after dot.
ceumern Posted - Apr 09 2009 : 04:49:22 AM
Default Intellisense is turned on.

Here is more info:


and:

and:
Microsoft Visual Studio 2005
Version 8.0.50727.879 (QFE.050727-8700)
Microsoft .NET Framework
Version 2.0.50727 SP1

Installed Edition: Standard

Microsoft Visual Basic 2005
Microsoft Visual Basic 2005

Microsoft Visual C# 2005
Microsoft Visual C# 2005

Microsoft Visual C++ 2005
Microsoft Visual C++ 2005

Microsoft Web Application Projects 2005
Microsoft Web Application Projects 2005
Version 8.0.50727.762

Hotfix for Microsoft Visual Studio 2005 Standard Edition - ENU (KB935225)
This Hotfix is for Microsoft Visual Studio 2005 Standard Edition - ENU.
If you later install a more recent service pack, this Hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/935225

Hotfix for Microsoft Visual Studio 2005 Standard Edition - ENU (KB936971)
This Hotfix is for Microsoft Visual Studio 2005 Standard Edition - ENU.
If you later install a more recent service pack, this Hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/936971

Hotfix for Microsoft Visual Studio 2005 Standard Edition - ENU (KB941098)
This Hotfix is for Microsoft Visual Studio 2005 Standard Edition - ENU.
If you later install a more recent service pack, this Hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/941098

Hotfix for Microsoft Visual Studio 2005 Standard Edition - ENU (KB943969)
This Hotfix is for Microsoft Visual Studio 2005 Standard Edition - ENU.
If you later install a more recent service pack, this Hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/943969

Microsoft Visual Studio 2005 Standard Edition - ENU Service Pack 1 (KB926601)
This service pack is for Microsoft Visual Studio 2005 Standard Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/926601

Qt Visual Studio Integration (1.4.3)
Qt Integration for Visual Studio .NET

Visual Assist X
For more information about Visual Assist X, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2009 Whole Tomato Software, Inc.

DoxyComment add-in for Visual Studio 2005
DoxyComment add-in for Microsoft Visual Studio 2005. Copyright 2005 by Troels Gram. All rights reserved. Please see http://doxycomment.sourceforge.net for documentation and updates.

Greetings.
accord Posted - Apr 08 2009 : 5:32:36 PM
Your example works for me. Let's see, what can be the problem on your side.

Do you keep default intellisense turned on?

http://docs.wholetomato.com?W133

So if you haven't renamed feacp.dll, then it should be good.

And last but not least default intellisense had been improved in the service pack for Visual Studio 2005.
Do you have VS2005 SP1 installed?
ceumern Posted - Apr 07 2009 : 05:55:26 AM
Ok. Thanks for the quick reply. I'll try what you suggested.

edit: as far as I can see, this did not change anything.

code:

boost::optional<std::string> asd;
asd->

(no completion after ->, even with ctrl+space)
accord Posted - Apr 06 2009 : 6:22:48 PM
I am seeing the same effect here. Thank you for the clear description.

case=2154

For now, you can turn on

VA Options -> Advanced -> Listboxes -> Get content from default Intellisense

as a workaround.

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