Why does std::forward discard constexpr-ness?

守給你的承諾、 提交于 2019-11-30 17:45:28

The general answer is that the C++ committee's Library Working Group have not done an exhaustive trawl through the working draft looking for opportunities to use the new core facilities. These features have been used where people have had the time and inclination to look at possible uses, but there is not the time for exhaustive checking.

There are some papers regarding additional uses of constexpr in the works, such as those in the November 2010 mailing.

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