mutable object referred by std::any

前端 未结 0 331
青春惊慌失措
青春惊慌失措 2021-01-07 15:46

Is only the way to modify, not replace, an object stored as std::any is to declare changeable data mutable? E.g. to avoid creation and copy of class S instance

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