> Yes, for vector, it has no error, but for set, it has errors and
> warnings.

You cannot modify the elements in a set. A set is a container with
unique keys; modifying them might destroy the uniqueness property.

Therefore, set::begin returns a const iterator.

Regards,
Martin

Reply via email to