编程语言
首页 > 编程语言> > C++ Clang No viable overloaded '=' 实则是 Chosen constructor is explicit in copy-initializati

C++ Clang No viable overloaded '=' 实则是 Chosen constructor is explicit in copy-initializati

作者:互联网

写 C++ 的时候, 编译器报错, 联想到刚才的解决的初始化必须带 struct 名问题 Stack Overflow-Chosen constructor is explicit in copy-initialization, 试图将代码改成

编译通过, 说明问题其实是隔得比较远声明的变量的 Chosen constructor is explicit in copy-initialization 问题;

特此记录, 以免后世留坑;

标签:No,Chosen,initialization,explicit,C++,constructor,copy
来源: https://www.cnblogs.com/misection/p/15530912.html