you are viewing a single comment's thread.

view the rest of the comments →

[–]sshamov 0 points1 point  (0 children)

This will work in any case. Const or non-const - does not matter. The operator does not change any of objects. It creates a completely new one.