Use std::size_t

Open Beginner friendly
#124 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp
Domain
backend

Research direction

Search the codebase for uses of size_t (likely in headers and source files) and replace them with std::size_t. Ensure #include <cstddef> is present where needed. Run existing tests to verify no regressions. The change is mechanical but requires checking multiple files.

Written by the indexing model from the issue text.

Description

enhancement

We use a bare size_t in a lot of places but technically for a C++ codebase we should prefer std::size_t instead. That's what's provided in <cstddef>, we just happen to get away with the C version because that header includes <stddef.h>.

Dominant language
C++
Stars
18
Forks
9
Avg merge
2h 56m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nasa/cml

All issues in nasa/cml

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.