Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Suggestions don t show for smart pointers

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
Capmare Posted - Oct 21 2024 : 10:55:35 AM
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



2   L A T E S T    R E P L I E S    (Newest First)
Capmare Posted - Oct 21 2024 : 1:41:32 PM
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






feline Posted - Oct 21 2024 : 1:07:19 PM
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.

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