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
 1635: boost::optional<> not parsed correctly
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

o2a
Junior Member

24 Posts

Posted - Apr 23 2008 :  6:53:35 PM  Show Profile  Reply with Quote
It seems that boost::optional (from Boost Libs 1.35) is not parsed correctly with build 1635. Currently I have no time to have a closer look or create some stand-alone example; please say so if you absolutely need such.

If I use something like boost::optional<SomeStruct> test, I get at least the members of boost::optional itself, but VAX doesn't recognize the wrapped type (SomeStruct) and doesn't give a member listbox etc. for dereferencing accesses on test (like test-> or test.get().). It looks like VAX can't process the reference_type-member of boost::optional<> correctly.

Interestingly I used an alias for boost::optional (via using; didn't tried it with a typedef so far) first and VAX didn't even list the members of boost::optional for instances of this alias-type. When I changed the type of the instance to boost::optional directly the members showed up and stayed correctly even when I changed the type back to the alias and made VAX reparse it (but did not clean the DB or something).

Strange things. I'll have to have a closer look at this, but maybe these hints are already enough or the problem is known already.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 24 2008 :  2:33:22 PM  Show Profile  Reply with Quote
I am seeing a problem with "boost::optional", I am using the simple test code:

#include <boost/optional.hpp>

struct stOptionalItems
{
	int nFruit;
	int nSquare;
	int nSphere;
};

static void testOptionalItem()
{
	boost::optional<stOptionalItems> optTest;
	optTest->nFruit;	// "nFruit" underlined as mistyped symbol
}


Have you always had problems with "boost::optional", or is this a new problem? I am seeing the same underlining problem in VA 1635 and VA 1561.

I am not seeing the same listbox problems as you are. Does turning on

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

help?

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

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 28 2008 :  6:20:10 PM  Show Profile  Reply with Quote
It turns out boost::optional is a known problem:

case=2154

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