oneDPL icon indicating copy to clipboard operation
oneDPL copied to clipboard

Add methods to satisfy Rule of 3/5 best practice.

Open timmiesmith opened this issue 1 year ago • 0 comments

https://en.cppreference.com/w/cpp/language/rule_of_three defines the best practice of providing no user-defined ctors/assignment/dtor or providing all of them. A review of oneDPL code found that in most places where methods are missing they are in fact not needed, but there are some instances where adding the missing methods allows for more consistent behavior from the structs and classes.

timmiesmith avatar Feb 02 '24 21:02 timmiesmith