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
 1524: smart-pointers again (unfortunately)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

o2a
Junior Member

24 Posts

Posted - Jun 20 2006 :  2:42:54 PM  Show Profile  Reply with Quote
Hi,

I was too quick with my relief about smart pointers finally working again.
There are still some heavy problems.
A very simple case:

#include <memory>

class Test
{
public:
	int someVar;
};

int main()
{
	std::auto_ptr<Test> test;
	test->|
}

(Tested with VS2005 and it's STL implementation.)

With some other smart pointer types, namely boost::shared_ptr, boost::optional and boost::scoped_ptr, I get mixed results so far. It seems that VAX trips over smart pointers whose contained types are given with partial or full qualification like boost::scoped_ptr<::A::B::Type>.

I'll see, if I can put together some better test case if I get the time.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 20 2006 :  3:47:57 PM  Show Profile  Reply with Quote
not all known smart pointer bugs were fixed in 1524, but it was mainly COM smart pointer problems that were supposed to be outstanding.

in this test case are you getting a massive completion listbox, of all sorts of items? that is what i am getting. this has shown up before on other STL classes, and does not appear to be related to smart pointers. i first saw it on std::string

case=1333

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

o2a
Junior Member

24 Posts

Posted - Jun 20 2006 :  4:01:11 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

not all known smart pointer bugs were fixed in 1524, but it was mainly COM smart pointer problems that were supposed to be outstanding.



Ah, I see. But at least the problems were fixed for my own pointer-like wrapper classes too.

quote:

in this test case are you getting a massive completion listbox, of all sorts of items? that is what i am getting. this has shown up before on other STL classes, and does not appear to be related to smart pointers. i first saw it on std::string



No, here I get just... nothing. It doesn't open any suggestion list. But the variable itself is ok, as I get the actual auto_ptr members in then completion list, when I use a dot insteat of the ->.

Btw, "Get content from default Intellisense" is disabled here, as I completely disabled VS2005's Intellisense (by renaming that one DLL) because of that notorious performance bug. (I hope there will be a VS-service pack soon.)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 20 2006 :  4:43:27 PM  Show Profile  Reply with Quote
that's odd. i have default intellisense turned off in VA, but not actually disabled on this test machine.

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

support
Whole Tomato Software

5566 Posts

Posted - Jun 26 2006 :  12:43:16 AM  Show Profile  Reply with Quote
Fixed in build 1525.
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