boostorg / boostorg/date_time

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
Dominant language
C++
Stars
70
Forks
99
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.