-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
警告 C26495 #22
Comments
initializing this array will cause the memcpy zeroing, or calling constructors for every element only something like this:
doesn't emit global constructor (for POD T, on gcc) |
This again emits constructors for intializing head and tail in globals/statics and warning is still there |
At least for POD, llvm recognizes .bss placement and workaround constructor is not necessary. |
non POD T constructors are always called |
警告 C26495 未初始化变量 jnk0le::Ringbuffer<char const *,256,0,0,unsigned __int64>::data_buff。始终初始化成员变量(type.6)。
The text was updated successfully, but these errors were encountered: