MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / Legacy

Class Legacy

06.17-spaceshipWithLegacyCode0/main.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <compare>
6
7struct Legacy {
8 int a;
9
10 // #A These define a weak order
11 bool operator==(const Legacy&) const;
12 bool operator<(const Legacy&) const;
13};
14
15class ShinyCpp20Class {
16 Legacy mA;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected