Opened 21 years ago
Closed 19 years ago
#71 closed Support Requests (Invalid)
shared_ptr
Reported by: | nobody | Owned by: | Peter Dimov |
---|---|---|---|
Milestone: | Component: | smart_ptr | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
I have used the shared_ptr class in some code I wrote a couple of years ago using Microsoft Visual C++ 5.0, and it worked great! Now I am trying to re-compile this code using Microsoft Visual C++6.0 and am getting some errors. I have tried everything I can think of, including getting the latest version of the library from the boost web site, but I am still getting the same error. I am using the shared_ptr with a class called 'CVFolder'. The code is something like this. CVFolder* pFolder = new CVFolder(); class boost::shared_ptr<class CVFolder>* pSharedPtr; pSharedPtr = new boost::shared_ptr<CVFolder>(pFolder); When I compile, I get the following error. error C2514: 'boost::shared_ptr<class CVFolder>' : class has no constructors Again, this error did not occur with VS5.0 Any help is appreciated. Thanks Mike
Note:
See TracTickets
for help on using tickets.