Template Argument Deduction Broken in Clang 6 for Temporary Objects

浪子不回头ぞ 提交于 2019-11-28 13:32:26

This is Clang bug 34091.

Luckily, it is already fixed, and the trunk build of Clang compiles this without issue.

As far as I know, however, there is currently no way to work around this without code changes, short of upgrading to the next Clang release whenever that comes out.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!