Is this function designed intentionally? boost::date_time::c_time::gmtime doesn't touch the result pointer passed.

Open
#199 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
backend

Research direction

Start with include/boost/date_time/c_time.hpp at lines 109-120 and reproduce the behavior on Windows with MSVC 16.11.7. Determine whether gmtime is intended to populate the supplied std::tm pointer, then verify the documented or implemented contract and add coverage for the observed behavior.

Written by the indexing model from the issue text.

Description

inline static std::tm* gmtime(const std::time_t* t, std::tm* result);

I assume this function will change the result pointer by filling the struct; but it doesn't;

Windows 10; MSVC 16.11.7

https://github.com/boostorg/date_time/blob/7156392706faa282044ce9f1d6ba9fdd207f6da9/include/boost/date_time/c_time.hpp#L109-L120

Dominant language
C++
Stars
70
Forks
99
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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 boostorg/date_time

All issues in boostorg/date_time

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.