string str_utf8 = "{\"a\":1}"; bson_error_t error;
auto bson = bson_new_from_json(str_utf8.ptr, str_utf8.length, &error);
You have a wrong declaration for bson_error_t too.
Kagamin via Digitalmars-d-learn Tue, 30 Jun 2020 22:56:17 -0700
string str_utf8 = "{\"a\":1}"; bson_error_t error;
auto bson = bson_new_from_json(str_utf8.ptr, str_utf8.length, &error);
You have a wrong declaration for bson_error_t too.