| 97 | }; |
| 98 | |
| 99 | class copy_constructible_only_test { |
| 100 | public: |
| 101 | explicit copy_constructible_only_test(std::int64_t value) : m_value(value) {} |
| 102 | |
| 103 | copy_constructible_only_test(const copy_constructible_only_test&) = default; |
| 104 | copy_constructible_only_test(copy_constructible_only_test&&) = delete; |
| 105 | copy_constructible_only_test& operator=(const copy_constructible_only_test&) = |
| 106 | delete; |
| 107 | copy_constructible_only_test& operator=(copy_constructible_only_test&&) = |
| 108 | delete; |
| 109 | |
| 110 | friend std::ostream& operator<<(std::ostream& stream, |
| 111 | const copy_constructible_only_test& value) { |
| 112 | stream << value.m_value; |
| 113 | return stream; |
| 114 | } |
| 115 | |
| 116 | friend bool operator==(const copy_constructible_only_test& lhs, |
| 117 | const copy_constructible_only_test& rhs) { |
| 118 | return lhs.m_value == rhs.m_value; |
| 119 | } |
| 120 | |
| 121 | friend bool operator!=(const copy_constructible_only_test& lhs, |
| 122 | const copy_constructible_only_test& rhs) { |
| 123 | return !(lhs == rhs); |
| 124 | } |
| 125 | |
| 126 | std::int64_t value() const { return m_value; } |
| 127 | |
| 128 | private: |
| 129 | std::int64_t m_value; |
| 130 | }; |
| 131 | |
| 132 | namespace std { |
| 133 | template <> |
no outgoing calls