adding the print age line

This commit is contained in:
Jidong Xiao
2025-04-18 03:09:55 -04:00
committed by JamesFlare1212
parent b8fde0d18e
commit 2e224420e9

View File

@@ -369,5 +369,10 @@ int main(){
// the shared_ptr itself is now empty (i.e., it holds nullptr).
age.reset();
std::cout << "the use count is : " << age.use_count() << std::endl;
// question: what happens if we print age here:
// std::cout << "age is " << *age << std::endl;
return 0;
}
```