Construct std::optional from std::option

后端 未结 0 462
南旧
南旧 2020-12-05 02:40

This code gets rejected:

const std::optional opt{5};
std::optional opt2 = opt;

But this is accepted:

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题