#A A struct with delete copy operations
| 38 | |
| 39 | // #A A struct with delete copy operations |
| 40 | struct NotCopyable { |
| 41 | NotCopyable(const NotCopyable&) = delete; |
| 42 | NotCopyable& operator=(const NotCopyable&) = delete; |
| 43 | }; |
| 44 | |
| 45 | optional<NotCopyable> a{}; |
| 46 | optional<NotCopyable> b = a; // #B This should fail |
nothing calls this directly
no outgoing calls
no test coverage detected