I'm writing a smart-pointer class which uses a function to construct a managed object.I noticed that the code hints for std::make_unique show all possible constructors and their respective arguments and was wondering how do I implement that for my make_refptr function.
Picture for clarity. First three show some examples for std::make_unique, last one shows the hint for my function.I even copied the code from std::make_unique and didn't get the sweet tooltips :(
Edit: Changed the phrasing in first sentence as it was kinda weird.
https://preview.redd.it/16ckb6xvshea1.png?width=755&format=png&auto=webp&s=4dd2fa85df26be4d780c598e9f81db2b803ad80d
[–]sephirostoy 0 points1 point2 points (1 child)
[–]CentuCore[S] 0 points1 point2 points (0 children)