Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Smart Pointer -> Operator Problem

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
cobrausn Posted - Oct 06 2011 : 11:13:06 AM
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?
3   L A T E S T    R E P L I E S    (Newest First)
cobrausn Posted - Oct 09 2011 : 4:21:25 PM
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.
feline Posted - Oct 07 2011 : 1:01:55 PM
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?
cobrausn Posted - Oct 06 2011 : 4:04:07 PM
I should also point out that a colleague of mine has the latest build (Build 1859) and has the same issue occurring.

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