3 ms·
Unfortunately I am trying to wrap const to something that wasn’t designed this way: https://news.ycombinator.com/item?id=20948523 https://news.ycombinator.com/i
by saagarjha 7y ago
Unfortunately I am trying to wrap const to something that wasn’t designed this way: https://news.ycombinator.com/item?id=20948523 https://news.ycombinator.com/item?id=20948523
- nurettin 7y agoSince soft const constraint is not part of the type, perhaps you could pass it to a lambda function that treats it as a const and another lambda function that treats it as mutable. A sort of const region and mutable region.