Is there any smart solution to avoid the risk of integer overflow when you try to give an unique identifier to each object of a class ?
For exemple, in Java :