is the static cast const actually necessary and is duplication of a one liner really that bad  const cast is really ugly  no matter where you put it  i would rather see the logic of getting the vector element duplicated than the const cast 