Closed rkonklewski-am2m closed 1 year ago
@Naios
This fixes #51
List-initialization of unsafe_locker class resulted in a compiler error, because 1) it had no constructor matching the arguments, and 2) it had other user-declared constructors, so aggregate initialization was not allowed (per C++20 rules).
References
This change fixes the issue by adding an appropriate constructor.
x
[ ]
IMO no new unit tests were needed.
@Naios
This fixes #51
What was a problem?
List-initialization of unsafe_locker class resulted in a compiler error, because 1) it had no constructor matching the arguments, and 2) it had other user-declared constructors, so aggregate initialization was not allowed (per C++20 rules).
References
How this PR fixes the problem?
This change fixes the issue by adding an appropriate constructor.
Check lists (check
x
in[ ]
of list items)Additional Comments (if any)
IMO no new unit tests were needed.