About Store Forum Documentation Contact
Donations:
327$/mo



Post Reply 
May I use shared_ptr?
Author Message
wakin001@gmail.com Offline
Member

Post: #1
May I use shared_ptr?
May I use shared_ptr?
I tested some code, seems it is ok except default parameter in a function, for example
Code:
class AClass
{
public:
void TestSharedPtr(const std::shared_ptr<TestClass>& objPtr = std::shared_ptr<TestClass>())
{
}
};

It cause build error.
Does anyone know why?
07-14-2016 10:53 AM
Find all posts by this user Quote this message in a reply
Post Reply