Closed zhlongfj closed 1 year ago
This is unrelated to this library, it's just a misuse of the STL. Try with another class like std::string instead of fakeit::Mock and you'll have the same error. Check the documentation to know how unique_ptr works : https://en.cppreference.com/w/cpp/memory/unique_ptr
@zhlongfj Has this one been resolved?
I'll close this issue because I guess it was resolved.
My Code: Mock schedulerCoreMock;
auto schedulerCore = unique_ptr(&schedulerCoreMock.get(), {});
Complied Error: