C++ - template instantiation with reference type

前端 未结 2 917
猫巷女王i
猫巷女王i 2021-02-04 08:06

I\'ve heard a little bit about reference-to-reference problem and this resolution. I\'m not very good with C++ Committee terminology, but I understand the \"Moved to DR\" annota

2条回答
  •  我寻月下人不归
    2021-02-04 08:59

    DR only means "Defect Report", and to my knowledge, the described resolution hasn't made it (yet) to the standard. For this reason, I believe a strictly conforming C++03 implementation should not compile this code because of it is forming a reference to a reference.

    [Edit] Just found a nice answer on this issue.

提交回复
热议问题