stlab / libraries

ASL libraries will be migrated here in the stlab namespace, new libraries will be created here.
https://stlab.cc
Boost Software License 1.0
660 stars 65 forks source link

Disable write for const qualified underlying type #511

Closed dbiswas2808 closed 1 year ago

dbiswas2808 commented 1 year ago

If the underlying type is const qualified I feel write() should be disabled. I haven't thought about this much but shouldn't const copy_on_write<Type> and copy_on_write<const Type> be semantically the same?