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
 Smart Pointer -> Operator Problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cobrausn
New Member

3 Posts

Posted - Oct 06 2011 :  11:13:06 AM  Show Profile  Reply with Quote
So I am having a bit of a problem getting visual assist to recognize when I am using a (custom rolled) smart pointer and give me autocomplete options, which is a bit frustrating as we use them everywhere.

I am currently working with build 1854 (2011.7.18) in VS2008 with intellisense disabled. I have the following construct:


#define sptr SmartPointer

template <typename T>
class SmartPointer
{
private:
  T* Object;

  //Other private methods

public:
  T* operator -> () { return Object; }

  //Other public methods
}


Using this construct, VAX fails to parse and give autocomplete options whenever using either SmartPointer<Type> or sptr<Type>. This fails for both the -> operator and the . operator Is this a known issue, or am I doing something incorrect here?

cobrausn
New Member

3 Posts

Posted - Oct 06 2011 :  4:04:07 PM  Show Profile  Reply with Quote
I should also point out that a colleague of mine has the latest build (Build 1859) and has the same issue occurring.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Oct 07 2011 :  1:01:55 PM  Show Profile  Reply with Quote
How have you disabled intellisense?

Do you have:

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

turned on or off?

In a simple test, using your class, with VS2008 and VA 1859, dot is being converted to -> correctly, and I am getting the expected items in the listbox after ->.

It is possible there is something in your complete smart pointer class that is confusing our parser, have you tried this simplified class? If so, does it work correctly for you?

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

cobrausn
New Member

3 Posts

Posted - Oct 09 2011 :  4:21:25 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

How have you disabled intellisense?

Do you have:

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

turned on or off?

In a simple test, using your class, with VS2008 and VA 1859, dot is being converted to -> correctly, and I am getting the expected items in the listbox after ->.

It is possible there is something in your complete smart pointer class that is confusing our parser, have you tried this simplified class? If so, does it work correctly for you?



That worked perfectly. Thanks a lot - this will make our lives a lot easier.
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