Вопрос

I'm using boost::scoped_array in a container that I want to make copy-on-write but I fear that scoped_array won't work. Which boost::smart_ptr container is closest to cow-safe scoped array?

Это было полезно?

Решение

You could use boost::shared_array.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top