Timeline for OpenCV or Boost smart pointers
Current License: CC BY-SA 3.0
Post Revisions
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 23, 2017 at 12:14 | history | edited | URL Rewriter Bot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
| Apr 8, 2013 at 7:35 | vote | accept | Chris | ||
| Mar 30, 2013 at 5:32 | answer | added | Germán Diago | timeline score: 7 | |
| Dec 19, 2012 at 11:28 | comment | added | marko |
Which you use will rather depend on the APIs you are calling - these 3 flavours of smart pointer are not necessarily interchangeable, or provide conversion operators between themselves. For this reason, there are often good reasons to use the boost::shared_ptr implementation instead of std::shared_ptr when using other parts of the boost library. The same is likely to hold for OpenCV too.
|
|
| Dec 19, 2012 at 11:22 | comment | added | yiding |
+1 on std::shared_ptr if you are using C++11. Otherwise it really comes down to whether you are already using boost or are planning to use boost, or interoperate with things using boost. I don't think it's worth including boost just for the shared_ptr, since cv::Ptr works well enough.
|
|
| Dec 19, 2012 at 11:20 | comment | added | undu | Have you considered using the standard smart pointers (if you have access to C++11) ? | |
| Dec 19, 2012 at 11:17 | history | asked | Chris | CC BY-SA 3.0 |