You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the value is a pointer to member of the provided const oc_rep_t* and therefore the returned value should also be const.
Functions oc_rep_get_byte_string, oc_rep_get_string, oc_rep_get_int_array, oc_rep_get_bool_array, oc_rep_get_double_array, oc_rep_get_byte_string_array, oc_rep_get_string_array, oc_rep_get_objectoc_rep_get_object_array should be modified to return const** value.
(This will however break API so we should issue at least a warning in the changelog).
The text was updated successfully, but these errors were encountered:
oc_rep_get functions that
const oc_rep_t*
and return value stored for given key.Example:
The problem is that the value is a pointer to member of the provided
const oc_rep_t*
and therefore the returned value should also beconst
.Functions
oc_rep_get_byte_string
,oc_rep_get_string
,oc_rep_get_int_array
,oc_rep_get_bool_array
,oc_rep_get_double_array
,oc_rep_get_byte_string_array
,oc_rep_get_string_array
,oc_rep_get_object
oc_rep_get_object_array
should be modified to returnconst**
value.(This will however break API so we should issue at least a warning in the changelog).
The text was updated successfully, but these errors were encountered: