Commit a8b094c
src: implement special member functions for classes in env.h
The classes in env.h were not adhering to the rule of five.
As per the rule of five, if a class implements any of five
special member functions, it must implement all the
five special member functions for enabling the compiler for
better optimization.
Refs: https://en.cppreference.com/w/cpp/language/rule_of_three
PR-URL: #28579
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent c432ab1 commit a8b094c
1 file changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
| 466 | + | |
465 | 467 | | |
466 | 468 | | |
467 | 469 | | |
| |||
552 | 554 | | |
553 | 555 | | |
554 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
555 | 563 | | |
556 | 564 | | |
557 | 565 | | |
| |||
636 | 644 | | |
637 | 645 | | |
638 | 646 | | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
639 | 650 | | |
640 | 651 | | |
641 | 652 | | |
| |||
650 | 661 | | |
651 | 662 | | |
652 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
653 | 667 | | |
654 | 668 | | |
655 | 669 | | |
| |||
679 | 693 | | |
680 | 694 | | |
681 | 695 | | |
| 696 | + | |
| 697 | + | |
682 | 698 | | |
683 | 699 | | |
684 | 700 | | |
| |||
697 | 713 | | |
698 | 714 | | |
699 | 715 | | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
700 | 719 | | |
701 | 720 | | |
702 | 721 | | |
| |||
723 | 742 | | |
724 | 743 | | |
725 | 744 | | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
726 | 748 | | |
727 | 749 | | |
728 | 750 | | |
| |||
757 | 779 | | |
758 | 780 | | |
759 | 781 | | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
760 | 788 | | |
761 | 789 | | |
762 | 790 | | |
| |||
796 | 824 | | |
797 | 825 | | |
798 | 826 | | |
| 827 | + | |
| 828 | + | |
799 | 829 | | |
800 | 830 | | |
801 | 831 | | |
| |||
0 commit comments