Non-string constants in structs and interfaces need a definition too.
Without this ODR-using these constants will cause linking errors. Namespace scoped constants are fine without a definition, since those have internal linkage and thus every user gets their own copy of the constant anyway. Bug: Change-Id: I361fc705500d67f010498208622022e81a20b2eb Reviewed-on: https://chromium-review.googlesource.com/521767Reviewed-by:Yuzhu Shen <yzshen@chromium.org> Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Cr-Commit-Position: refs/heads/master@{#476534}
Showing
Please register or sign in to comment