Are temporary objects in C++ const indeed?

前端 未结 6 1789
走了就别回头了
走了就别回头了 2021-01-06 10:11

I always believed that temporary objects in C++ are automatically considered as const by the compiler. But recently I experienced that the following example of code:

6条回答
提交回复
热议问题