|
The conversion itself is fine
But the const attribute is eliminated,
Then the corresponding access rights will be expanded,
There may be problems ~~~
but,
As long as you can be sure that the visit will not lead to illegal operations,
Basically feasible.
In addition,
If you want to cancel const,
Why bring in const? |
|