C++ (C++98)

Analysis against C++98 (ISO/IEC 14882:1998): the language has no threads, no smart pointers, no std::variant, and no modules. The family’s C++23 page assesses the current release.

This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].

Snapshot C++98 — released 1998 · lifecycle superseded (Replaced by C++03 and C++11; a current compiler accepts it only as an opt-in mode.)

Family C++ — shelf: Systems

The language exists to control memory and hardware directly: a runtime is optional, and layout is the programmer’s business. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.

Trajectory C with Classes (1979 — first implementation, Bjarne Stroustrup) · 98 (1998 — first ISO standard; templates — assessed release) · 11 (September 2011 — move semantics and lambdas, threads, smart pointers — assessed release) · 20 (December 2020 — concepts and modules) · 23 (October 2024 — ISO/IEC 14882:2024)

Tags

Use — Application, Systems, Embedded

Paradigm — Object-oriented, Imperative

Platform — Native, Embedded target

Lifecycle — Superseded

Memory — Manual

Typing — Static, weak

Resources

The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to C++98; an unmarked link is the current reference for the language.

Landing page

Specification and reference

API documentation

Tutorial

1 Assessment

This page assesses C++98 in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.

Core coupling 48.9/100 · Ecosystem coupling 69.5/100 · Engineering readiness 43.3/100

1.1 Core coupling

1.1.1 Type

  • ❌ A conversion narrows in silence: the conversion table is a shared resource no reader is forced to hold, so a checked expression cannot be told from a narrowed one (T2)
  • ❌ No sum type: a union plus a tag is the encoding, and every consumer re-derives which member is live (T4)
  • ❌ An operator takes its meaning from the operand types: << shifts and inserts, and a reader resolves the type to know which (T8)
  • ❌ A pointer may be null and the type does not say so: each consumer writes the guard, and an omission stays invisible (T10)
  • ❌ A header is the only surface, and it is entirely public: there is no construct that declares what a module exposes and keeps (T11)
  • ❌ A signature states no effects: a call may write a file, mutate a global, and throw, and the signature names only the return type (T12)
  • ❌ extern "C" is a hand-written promise: argument order, layout, and lifetime cross a boundary that neither compiler validates (T14)

1.1.2 Construction

  • ❌ A binding is mutable until the code says otherwise: const is opt-in, and every holder reconstructs who may write (C2)
  • ✅ Placement construction separates storage from construction: an object is built in storage the caller already holds (C3)
  • ✅ Only the ordered containers ship: std::map and std::set iterate in key order, so the hash container’s unpinned order does not exist in this release (C5)
  • ❌ One value, many names: a pointer, a reference, a member, and a parameter reach one object, and the declaration names none of the sharers (C6)
  • ❌ Execution moves with no call in sight: a converting constructor and a conversion operator run from the contexts the standard names, not from a call the source shows (C7)
  • ❌ The static initialization order fiasco: namespace-scope init order across translation units is implementation-defined [5] (C8)

1.1.3 Memory

  • ✅ Destructors run at scope exit: the release is deterministic and no collector is involved
  • ❌ No handle records its owner: two pointers can share one buffer with no way to say which frees it (M4)
  • ❌ Storage arrives uninitialized: default-initialization leaves scalars indeterminate, and reading one before a write is undefined behaviour (M5)
  • ❌ Bytes can be read as a type they never were: a union and a reinterpret_cast reinterpret storage with no check (M6)
  • ❌ The undeclared class has no catch: a wild pointer’s trap ends the program outside every catch clause (Er6)
  • ❌ Reference-count cycles leak in the C++98 library idioms; breaking by hand is the documented rule (M7)

1.1.4 Error

  • ✅ A structured path exists: throw and catch carry a failure from where it is raised to where it is handled (Er1)
  • ❌ A failure may arrive undeclared: throw needs no signature entry, and no caller is required to handle it (Er2)
  • ❌ A failure is not an ordinary value: nothing folds a fallible operation into an expression, so each level rebuilds the pair (Er4)
  • ❌ A fault ends the program: an uncaught exception in a thread calls std::terminate, and the thread is not an isolation unit (Er5)

1.1.5 Concurrency

  • ❌ No thread of control in the language: a second core needs a platform thread library, which is outside the language’s own structure (K1)
  • ⚠️ Shared state is the default once a thread library is in use: nothing marks a value thread-local or immutable (K2)
  • ⚠️ Nothing detects a race: the locking discipline is an agreement across files that no tool checks (K3)
  • ⚠️ No scope joins a task: a task started without a scope can outlive the code that started it (K4)
  • ❌ No first-class lock, channel, or await: coordination lives in the platform’s facilities, and no declaration states the protocol (K5)
  • ❌ A concurrent task is an operating-system thread: each task holds a thread for its whole life, so ten tasks read well and ten thousand do not (K6)

1.1.6 Platform

  • ✅ No vendor owner: the language is standardised by ISO/IEC, and independent compilers implement it
  • ✅ No required runtime: a program compiles to native code and needs no vendor service
  • ✅ Every mainstream target is supported: compilers exist for the operating systems and embedded targets of the era

1.1.7 Trade-offs (not coupling)

  • Zero-cost abstraction vs. reading time: templates and inline code remove runtime cost and add ceremony at every declaration
  • Placement construction vs. readability: building an object in storage the caller chose is a precise control, and the reader reconstructs where that storage came from

1.2 Ecosystem coupling

1.2.1 Performance

  • ✅ Compiled to native code: no interpreter dispatch sits in the hot loop
  • ✅ No collector: release timing is the program’s, not a runtime component’s

1.2.2 Ecosystem

  • ❌ No package manager: a dependency is resolved by a build script or by the platform’s toolchain, so two checkouts can disagree about the graph (Ec1)
  • ❌ Fragmented tooling: the language is split across platform toolchains with different extensions and warning sets (Ec2)
  • ❌ No cross-release binary promise: libstdc++ documents that binaries built with one GNU release are incompatible with binaries built with another [6] (Ec8)

1.2.3 Evolution

  • ❌ A needed feature waits for the committee: the 1998 standard was revised only by a defect report in 2003, and the next feature revision arrived in 2011 (V4)
  • ❌ Build variants multiply: the preprocessor’s #ifdef tree selects which declarations reach the compiler, so a translation unit is a flag outcome (V7)
  • ✅ Additive revisions: the committee removed almost nothing, so code written to this standard still compiles under later ones

1.2.4 Domain

  • ✅ Close to the machine: the language serves systems, games, and embedded work
  • ⚠️ Not a web or scripting language: the work it fits least is the work it is least used for

1.2.5 Learning

  • ❌ Steep: templates, multiple inheritance, manual memory, and undefined behaviour build on nothing a mainstream background supplies (L1)
  • ❌ Several paradigms at once: procedural, object-oriented, and generic code all remain available for the same task (L2)
  • ✅ An authoritative standard text and a large literature: the reference is public and complete

1.2.6 Syntax

  • ⚠️ Nested instantiations tax the reader: a template argument can itself be an instantiation, and the reader unfolds the chain to know the type it produces
  • ✅ Declarations state types once: the reader resolves a type at its declaration rather than at each use

1.2.7 Testing

  • ⚠️ Testing arrives from outside the toolchain: assert is in the library and no runner is, so a framework and a runner are adopted per project
  • ✅ A mature debugger exists for every platform: the toolchain is the platform’s, and it steps through the source
  • ❌ The only published clock is the wall: time() reads the operator’s calendar, and clock() reports processor time, so no reading the library publishes is monotonic (G4)

1.2.8 Security

  • ❌ Memory-unsafe: a buffer overflow, a use-after-free, and a double free all compile, and any pointer suffices (Q1)
  • ❌ The inherited C rule: signed overflow undefined, unsigned modulo (Q4)

1.2.9 Delivery targets

What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.

Target Ships as Crosses a producer boundary Cross-release promise
vcpkg and Conan recipes source no A recipe builds from source on the consumer machine
shared library compiled yes no — libstdc++ documents that binaries built with one GNU release are incompatible with binaries built with another, and mixing C++ ABIs is not recommended [6]

1.3 Engineering readiness

1.3.1 Reproducibility

  • ❌ Builds are not byte-reproducible by default: timestamps and absolute paths reach the artifact, so a third party cannot confirm it matches the source (Y1)

1.3.2 Supply chain

  • ❌ No registry, so no signed provenance: a dependency is a source tree or a library, and its origin is taken on trust (Y3)

1.3.3 Observability

  • ❌ A failure leaves no post-mortem by default: without a debugger and an enabled core dump, an unhandled failure prints nothing (Y15)

1.3.4 Feedback

  • ❌ A change pays a slow build: templates and a long link step sit on the critical path of every edit (Y7)

1.3.5 Interop

  • ✅ A general foreign-function interface exists: the platform’s C ABI is the boundary, and the language calls it directly (Y9)

1.3.6 Governance

  • ❌ An open standard with no conformance suite: the standard lists implementation-defined behaviour, and the committee publishes no suite an independent implementation runs (Y17)

1.4 Profile

Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.

1.4.1 Energy and cost

What this axis asks: what does a running program cost in energy and time?

  • ✅ Compiles to native code: the fastest class in the language energy and time benchmarks [7], [8]. A causal re-analysis attributes the difference to execution time [9].

1.4.2 AI and agent readiness

What this axis asks: how well does a coding model and an agent work in this language?

  • ✅ A large training corpus and strong code-generation results: models write this language well [10], [11].

1.4.3 Safety certification

What this axis asks: is there a certified or standards-qualified path to a safety-critical system?

  • ✅ A standards-qualified toolchain or an established safety standard covers this language.

1.5 Scoring detail

1.5.1 Core coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Type T1 dynamic no static check language — 0
T2 weak static language ✅ −8
T3 dynamic/duck dispatch language — 0
T4 no sum types language ✅ −4
T5 no generics language — 0
T6 no namespaces language — 0
T7 type erasure/reflection language — 0
T8 operator overloading language ✅ −4
T9 inheritance required for polymorphism language — 0
T10 no null-safety language ✅ −8
T11 no module boundary language ✅ −8
T12 no effect tracking language ✅ −8
T13 async/sync colouring language — 0
T14 unchecked foreign boundary language ✅ −4
T15 chars are encoding units language — 0
Type cost −12.6 (−44)
Construction C1 global mutable state by default language — 0
C2 no immutability by default language ✅ −4
C3 constructors coupled to allocation language — 0
C4 no constructor/validation language — 0
C5 unpinned collection order language — 0
C6 aliasing by default language ✅ −8
C7 undeclared control transfer language ✅ −8
C8 no source-visible init order language ✅ −8
Construction cost −8.0 (−28)
Memory M1 manual deallocation runtime — 0
M2 GC non-deterministic pauses runtime — 0
M3 no RAII language — 0
M4 no ownership model language ✅ −8
M5 uninitialized reads language ✅ −8
M6 unchecked reinterpretation language ✅ −8
Er6 uncatchable runtime fault language ✅ −8
M7 reference cycles leak runtime ✅ −8
Memory cost −11.4 (−40)
Error Er1 no structured path language — 0
Er2 unchecked exceptions only language ✅ −8
Er3 errors ignored/non-exhaustive language — 0
Er4 no composable result type language ✅ −4
Er5 no isolation unit for a fault runtime ✅ −8
Error cost −5.7 (−20)
Concurrency K1 GIL/no parallel runtime ✅ −15
K2 shared mutable state default language ✅ −8
K3 manual sync no race detection runtime ✅ −8
K4 no structured concurrency language ✅ −4
K5 no primitives language ✅ −4
K6 thread-per-task cost runtime ✅ −8
Concurrency cost −13.4 (−47)
Platform P1 cannot function outside one vendor/domain context — 0
P2 single-vendor but other uses context — 0
P3 legacy/discontinued platform context — 0
P4 poor domain fit context — 0
Platform cost 0

Core coupling score: 48.9/100 — 179 of the 350 inventory points are present, so the axis cost is 100 × 179 ÷ 350 = 51.1 and the score is 100 − 51.1. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.2 Ecosystem coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Performance R1 interpreted no AOT/JIT runtime — 0
R2 GC pauses runtime — 0
R3 JIT warmup runtime — 0
Performance cost 0
Ecosystem Ec1 no package manager context ✅ −4
Ec2 fragmented tooling context ✅ −8
Ec3 small/niche/discontinued context — 0
Ec4 proprietary context — 0
Ec5 platform-locked tooling context — 0
Ec6 monoculture context — 0
Ec7 legacy burden context — 0
Ec8 unpromised binary boundary context ✅ −8
Ec9 unpromised data boundary context — 0
Ecosystem cost −7.8 (−20)
Evolution V1 breaking changes language — 0
V2 frozen context — 0
V3 discontinued context — 0
V4 glacial standards context ✅ −4
V5 silent default drift runtime — 0
V7 build-variant state space context ✅ −8
Evolution cost −4.7 (−12)
Domain D1 domain/vendor lock-in context — 0
D3 framework forces architecture context — 0
Domain cost 0
Learning L1 steep context ✅ −8
L2 large surface/multi-paradigm context ✅ −4
L3 sparse docs context — 0
Learning cost −4.7 (−12)
Syntax S1 verbose language — 0
S2 inconsistent language — 0
S3 punctuation-heavy language — 0
Syntax cost 0
Testing G1 weak tooling context — 0
G2 poor debugging context — 0
G3 runtime-only errors context — 0
G4 no published monotonic clock runtime ✅ −4
Testing cost −1.6 (−4)
Security Q1 memory-unsafe language ✅ −15
Q2 dynamic/weak typing risk language — 0
Q3 known vulnerability/injection context — 0
Q4 silent integer overflow language ✅ −15
Security cost −11.7 (−30)

Ecosystem coupling score: 69.5/100 — 78 of the 256 inventory points are present, so the axis cost is 100 × 78 ÷ 256 = 30.5 and the score is 100 − 30.5. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.3 Engineering readiness Dimensions

Dimension Mechanism Description Imposed by Present Weight
Reproducibility Y1 build not reproducible context ✅ −15
Y2 dependencies not pinned context ✅ −8
Y14 no toolchain version pin context ✅ −8
Y18 no machine-read project contract context — 0
Reproducibility cost −18.1 (−31)
Supply chain Y3 no signed provenance context ✅ −15
Y4 registry without namespacing context — 0
Y16 no advisory feed context ✅ −8
Supply chain cost −13.5 (−23)
Observability Y5 no stable tracing standard context — 0
Y6 no structured logging context ✅ −4
Y15 no post-mortem diagnostics runtime ✅ −8
Observability cost −7.0 (−12)
Feedback Y7 slow build context ✅ −15
Y8 no fast in-editor analysis context — 0
Y13 no bundled debugger context ✅ −8
Feedback cost −13.5 (−23)
Interop Y9 no foreign-function interface language — 0
Y10 no portable target context — 0
Interop cost 0
Governance Y11 single-vendor governance context — 0
Y12 closed specification context — 0
Y17 no conformance mechanism context ✅ −8
Y19 no published parser context — 0
Governance cost −4.7 (−8)

Engineering readiness score: 43.3/100 — 97 of the 171 inventory points are present, so the axis cost is 100 × 97 ÷ 171 = 56.7 and the score is 100 − 56.7. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

Verdict: C++98 is the standard that made the language portable, and it carries every cost of its era. There is no thread in the language, no smart pointer, no sum type, and no module: concurrency, ownership, and encapsulation are conventions the platform supplies. Templates give generics at compile time, destructors give deterministic release, and the preprocessor gives portability at the cost of a flag-dependent program. Main strength: zero-cost abstraction and direct control of memory and layout. Main weakness: the language supplies no construct for concurrency, for ownership, or for a module boundary, so each is a local invention. The family’s C++23 page shows how much of this the later standards removed.


The formal development. The definitions, theorems, and proofs behind this page are published in:

All published papers

References

[1]
Y. Loth, “On the nature of coupling: All coupling as shared resource access.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925121.
[2]
Y. Loth, “Coupling as a consequence of cohesion: Decomposition, the coupling floor, and domain-imposed coupling.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925201.
[3]
Y. Loth, “On the nature of cohesion: Cohesion as correctness relative to a partitioning rule.” Zenodo, Jul. 2026. doi: 10.5281/zenodo.20492912.
[4]
ISO/IEC JTC 1/SC 22, “Programming languages — C++.” International Organization for Standardization; International Standard ISO/IEC 14882:1998, Geneva, Switzerland, 1998.
[5]
H. Sutter and T. van der Meer, “Static initialization order fiasco,” C++ Report, vol. 11, no. 4, 1999.
[6]
GNU Project, “libstdc++ ABI policy and guidelines.” Free Software Foundation, 2026. Available: https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html
[7]
R. Pereira et al., “Energy efficiency across programming languages: How do energy, time, and memory relate?” in Proceedings of the 10th ACM SIGPLAN international conference on software language engineering (SLE), 2017, pp. 256–267. doi: 10.1145/3136014.3136031.
[8]
R. Pereira et al., “Ranking programming languages by energy efficiency,” Science of Computer Programming, 2021, doi: 10.1016/j.scico.2021.102609.
[9]
N. van Kempen, H.-J. Kwon, D. T. Nguyen, and E. D. Berger, “It’s not easy being green: On the energy efficiency of programming languages,” in Proceedings of the 40th IEEE/ACM international conference on automated software engineering (ASE), 2025. doi: 10.1109/ASE63991.2025.00131.
[10]
S. Joel, J. J. Wu, and F. H. Fard, “A survey on LLM-based code generation for low-resource and domain-specific programming languages,” ACM Transactions on Software Engineering and Methodology, 2025, doi: 10.1145/3770084.
[11]
Y. Qing et al., “EffiBench-x: A multi-language benchmark for measuring efficiency of LLM-generated code,” in Advances in neural information processing systems 38 (NeurIPS), datasets and benchmarks track, 2025. doi: 10.48550/arXiv.2505.13004.