Skip to content

Commit 8484e43

Browse files
authored
Fix time_point compilation error with Clang (#1112)
1 parent 0e33676 commit 8484e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strings/base_chrono.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ WINRT_EXPORT namespace winrt
4242

4343
static time_t to_time_t(time_point const& time) noexcept
4444
{
45-
return static_cast<time_t>(std::chrono::system_clock::to_time_t(to_sys(time)));
45+
return static_cast<time_t>(std::chrono::system_clock::to_time_t(to_sys(std::chrono::time_point_cast<std::chrono::system_clock::duration>(time))));
4646
}
4747

4848
static time_point from_time_t(time_t time) noexcept

0 commit comments

Comments
 (0)