3 Apr
2017
3 Apr
'17
7:52 p.m.
On Apr 3, 2017, at 1:34 PM, Peter Dimov via Boost
wrote: Tim Song wrote:
The issue was, I believe, whether the const implied by the constexpr gave the variable template internal linkage; even though they are templates, that doesn't help with the ODR problem if they are actually different templates.
Yes, it would be similar to the (mostly theoretical) problem created by _1, if passed by reference to a template.
Its more than theoretical, with internal linkage it will bloat the binary with duplicate symbols. Most linkers can remove these duplicates, but do not always and are not required to.