Are you doing any checks to make sure sizeof(value_type) == 1?