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
 Suggestions don t show for smart pointers
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

Capmare
New Member

Belgium
2 Posts

Posted - Oct 21 2024 :  10:55:35 AM  Show Profile  Reply with Quote
This is the demo code i am using



#include <iostream>


class MyClass
{
public:
	MyClass();
	~MyClass();
	void getInt();
private:

};

MyClass::MyClass()
{
}

MyClass::~MyClass()
{
}

void MyClass::getInt()
{
}

int main() {


	auto intPtr = std::make_unique<MyClass>();

	intPtr->getInt();
}




These are the suggestion settings that i am using



feline
Whole Tomato Software

United Kingdom
18964 Posts

Posted - Oct 21 2024 :  1:07:19 PM  Show Profile  Reply with Quote
Odd. I am seeing the same effect here, and trying to understand why. So far it seems to be limited to std::make_unique which is something.

Does a valid listbox appear when you press CTRL-SPACE? It does for me.

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

Capmare
New Member

Belgium
2 Posts

Posted - Oct 21 2024 :  1:41:32 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

Odd. I am seeing the same effect here, and trying to understand why. So far it seems to be limited to std::make_unique which is something.

Does a valid listbox appear when you press CTRL-SPACE? It does for me.




No, the only time i get a suggestion box is when i activate Default intellisense





But this again only shows the object suggestion and not the pointer functions unless i write -> myself







Apparently the issue persist even when using make_shared



Raw pointer seem to work properly and have no problems when using auto






Not using auto for smart pointers apparently solves the issue for me but this is not a long term solution.




I have also noticed that the same issue happens in unreal engine too when using their own smart pointers.

This is using TObjectPtr




This is using a raw pointer







- Capmare David Nicusor
- MallocStar
Go to Top of Page
   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