Y
Hacker News
new
|
ask
|
show
|
jobs
by
saagarjha
2471 days ago
Unfortunately I am trying to wrap const to something that wasn’t designed this way:
https://news.ycombinator.com/item?id=20948523
1 comments
nurettin
2471 days ago
Since 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.
link