boostorg / boostorg/icl

sprintf deprecated

Open Beginner friendly
#49 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
16
Forks
50
PR merge metrics
No merged PRs in 30d

Description

"Use snprintf if available as some compilers (clang 14.0) issue deprecation warnings for sprintf"

```
libs/icl/example/toytime.hpp: sprintf(repr, "%3s:%02d:%02d", getDayString().c_str(), getHours(), getMinutes());
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at libs/icl/example/toytime.hpp and inspect the shown sprintf call; reproduce the clang 14.0 deprecation warning if the project setup permits. Done means the example no longer triggers that warning while preserving its time representation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.