3 Apr
2017
3 Apr
'17
6:34 p.m.
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. I doubt that any implementation gives variable template instantiations internal linkage though. It just makes no sense. I don't know why issue 1713 hasn't been resolved yet.