No implicit conversion from b_string to string on arrays?

Hello! I have a quick question just to make sure I’m not actually missing something.
I have just upgraded to version 3.8-pre (master) from 3.6. Before, I could get a string element like “element.get_utf8().value.to_string()”. Now get_utf8() is deprecated and the method get_string() gives the following error.


img_array is of type bsoncxx::v_noabi::array::view
Also there is no to_string method anymore.

From bsoncxx::document::view this conversion is implicit and seems to work.

As said, is this normal?

Hi @Arreme_N_A,

You can refer to the example shown here for this conversion

3 Likes