Permalink
Browse files

智能指针小试

  • Loading branch information...
1 parent 3677b6a commit 085d8c54fb0a9ac8d59dba432a7b5768275fbaef = committed Dec 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 shared_ptr.cpp
View
@@ -35,7 +35,7 @@ int main(){
std::cout<<"test_pc2 use_count = "<<test_pc2.use_count()<<std::endl;
boost::shared_ptr<TC> test_pc3 = test_pc2;
- test_pc3->print_str(2);
+ test_pc3->print_str(3);
std::cout<<"test_pc3 use_count = "<<test_pc3.use_count()<<std::endl;
return 0;

0 comments on commit 085d8c5

Please sign in to comment.