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

Class Car

12.12-constexprAllocation1/main.cpp:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#if not(defined(__GNUC__) && !defined(__clang__))
5
6struct Car { // #A Base class for all cars
7 virtual ~Car() = default;
8 constexpr virtual int speed() const = 0;
9};
10
11// #B Various concrete cars with individual speed
12struct Mercedes : Car {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected