[GH-ISSUE #15] Compile failed cause wrong use of constexpr #13

Closed
opened 2026-10-26 09:43:26 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @z47z on GitHub (Feb 28, 2025).
Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/15

Originally assigned to: @yiyuanliu on GitHub.

In File 3FS/src/common/net/ib/IBConnect.h:175:29:
static constexpr std::string_view serdeTo(const ibv_gid &gid) {
return std::string_view((const char *)&gid.raw[0], sizeof(ibv_gid::raw));
}

type force cast can't be used in constexpr.

Originally created by @z47z on GitHub (Feb 28, 2025). Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/15 Originally assigned to: @yiyuanliu on GitHub. In File 3FS/src/common/net/ib/IBConnect.h:175:29: static constexpr std::string_view serdeTo(const ibv_gid &gid) { return std::string_view((const char *)&gid.raw[0], sizeof(ibv_gid::raw)); } type force cast can't be used in constexpr.
Author
Owner

@SF-Zhou commented on GitHub (Feb 28, 2025):

Thank you! This error did not occur in our build environment. It has been fixed.

<!-- gh-comment-id:2690918607 --> @SF-Zhou commented on GitHub (Feb 28, 2025): Thank you! This error did not occur in our build environment. It has been fixed.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/3FS#13
No description provided.