Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Bad suggestion for 'vector<shared_ptr<T>>'
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Senior Member

39 Posts

Posted - Apr 10 2016 :  5:22:37 PM  Show Profile  Reply with Quote

Smart suggestions for shared_ptr (and, probably, unique_ptr) don't work properly in the following case:
std::vector<std::shared_ptr<int>> vec;
vec[0] = {{ suggests std::vector<std::make_shared<int>>() }}
vec = {{ suggests the same, maybe not always }}

Whole Tomato Software

United Kingdom
3279 Posts

Posted - Apr 11 2016 :  12:25:23 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

Go to Top of Page

Whole Tomato Software

2817 Posts

Posted - Jul 18 2016 :  10:40:29 PM  Show Profile  Reply with Quote
case=96425 is fixed in build 2107.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000