We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, the getters of the RdMentalMap are not thread-safe, so they may have problems when running in different threads.
The text was updated successfully, but these errors were encountered:
Provide trivial copy ctor and assignment operator for singleton classes
2272d97
One could still create copies with the following code: // Create singleton MockImageManager::RegisterManager(); ImageManager * im = ImageManager::getImageManager(MockImageManager::id); // Violate singleton's contract with copy constructor MockImageManager * temp = (MockImageManager*)im; // for conciseness MockImageManager mim1(*temp); // copy-ctor #1 MockImageManager mim2 = *temp; // copy-ctor #2 MockImageManager mim3 = MockImageManager(*temp); // copy-ctor #3 MockImageManager *pmim = new MockImageManager(*temp); // copy-ctor #4 // Copy assignment operator mim1 = mim3; See also http://stackoverflow.com/a/6811055
No branches or pull requests
Currently, the getters of the RdMentalMap are not thread-safe, so they may have problems when running in different threads.
The text was updated successfully, but these errors were encountered: