| | |
How do I set shared ptr to NULL
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 25
Reputation:
Solved Threads: 0
Hi,
I have a simple question on trying to set shared ptr to NULL.
I get an error(binary '=': no operator found which takes a right hand operand of type 'int') when I do this...
Why is this wrong?
I have a simple question on trying to set shared ptr to NULL.
I get an error(binary '=': no operator found which takes a right hand operand of type 'int') when I do this...
C++ Syntax (Toggle Plain Text)
typedef std::tr1::shared_ptr<A> A_smrt; A_smrt = NULL;
Why is this wrong?
![]() |
Similar Threads
- Why doesn't delete reset its pointer to NULL? (C++)
- Boost shared ptr construction (C++)
- How to set the hidden field value to null in jsp? (JSP)
- Null Pointer? will this code work (C)
- Link List Sorting Problem (C++)
- Another question regarding memory (C)
- How to free up memory used for queues? (C)
- Pointers (C++)
Other Threads in the C++ Forum
- Previous Thread: Calculation problems..
- Next Thread: C++ Simple Math Problems
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





