File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,5 +21,7 @@ CheckOptions:
2121 - { key: readability-braces-around-statements.ShortStatementLines, value: 3 }
2222 - { key: readability-implicit-bool-conversion.AllowPointerConditions, value: true }
2323 - { key: readability-implicit-bool-conversion.AllowIntegerConditions, value: true }
24+ - { key: cppcoreguidelines-special-member-functions.AllowImplicitlyDeletedCopyOrMove, value: true }
25+ - { key: cppcoreguidelines-special-member-functions.AllowMissingMoveFunctionsWhenCopyIsDeleted, value: true }
2426
2527HeaderFilterRegex : ' .*/(src/.*|include/.*)[.]hpp'
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ namespace AwesomeAssert
7272 virtual ~stringifier () noexcept ;
7373 virtual std::ostream& convert (std::ostream& os) const = 0;
7474
75+ protected:
76+ stringifier () = default ;
77+ stringifier (stringifier&&) = default ;
78+ stringifier& operator =(stringifier&&) = default ;
79+
7580 private:
7681 friend struct detail ::bool_expression;
7782 // Must be inline to ensure the compiler has the full body available for constant propagation
@@ -264,9 +269,6 @@ namespace AwesomeAssert
264269 {
265270 }
266271
267- bool_expression (bool_expression&& rhs) = default ;
268- bool_expression& operator =(bool_expression&& rhs) = default ;
269-
270272 AWESOME_CXX23_CONSTEXPR const_iterator begin () const noexcept
271273 {
272274 return const_iterator{fail_expression.get ()};
@@ -610,7 +612,6 @@ namespace AwesomeAssert
610612 struct violation_info
611613 {
612614 violation_info () = default ;
613- violation_info (violation_info&& rhs) = default ;
614615
615616 AWESOME_CXX23_CONSTEXPR violation_info (
616617 const char * file
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ struct move_only_t
3636
3737 move_only_t (move_only_t &&) = default ;
3838 move_only_t & operator =(move_only_t &&) = default ;
39+ ~move_only_t () = default ;
3940
4041 // modifying operators are purposefully by-value to force the params to be r-values.
4142 friend constexpr move_only_t operator <<(move_only_t lhs, move_only_t rhs) noexcept
You can’t perform that action at this time.
0 commit comments