Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Suggestion for issue #1108 #1122
Unit tests added, for copy constructor and assignment operator. As you will seen, the two tests added emphasize the fact that the copy constructor reuses the allocator of the copied object but not the assignment operator (that was option 1 in my comment on issue #1108).
Of course, we can also implement option 2, in which the copy constructor and the assignment operator have the same behavior regarding the allocator.
Whichever you prefer.