How to swap smart pointers when one is const

后端 未结 0 1790
予麋鹿
予麋鹿 2020-11-30 09:43

I have the following problem

Buffer buffer1;
Buffer buffer2;

std::unique_ptr hotBuffer;
std::unique_ptr backBuffer;
         


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