Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error #49

Open
abemammen opened this issue Mar 12, 2023 · 0 comments
Open

Build error #49

abemammen opened this issue Mar 12, 2023 · 0 comments

Comments

@abemammen
Copy link

during last step of "Build and install Mangrove".
-> make && make install
Get this error:
In file included from /Users/xxx/src/repos/mangrove/src/mangrove/test/collection_wrapper.cpp:26:
/Users/xxx/src/repos/mangrove/src/mangrove/collection_wrapper.hpp:267:22: error: no matching member function for call to 'replace_one'
return _coll.replace_one(filter, boson::to_document(replacement), options);
~~~~~~^~~~~~~~~~~
/Users/xxx/src/repos/mangrove/src/mangrove/test/collection_wrapper.cpp:218:29: note: in instantiation of member function 'mangrove::collection_wrapper::replace_one' requested here
auto res = foo_coll.replace_one(doc_view, obj2);
^
/usr/local/include/mongocxx/v_noabi/mongocxx/collection.hpp:1407:41: note: candidate function not viable: no known conversion from 'const mongocxx::options::update' to 'const options::replace' for 3rd argument
stdx::optionalresult::replace_one replace_one(
^
/usr/local/include/mongocxx/v_noabi/mongocxx/collection.hpp:1434:41: note: candidate function not viable: no known conversion from 'bsoncxx::document::view_or_value' (aka 'view_or_value<document::view, document::value>') to 'const mongocxx::client_session' for 1st argument
stdx::optionalresult::replace_one replace_one(
^
10 warnings and 1 error generated.
make[2]: *** [src/mangrove/test/CMakeFiles/test_mangrove.dir/collection_wrapper.cpp.o] Error 1
make[1]: *** [src/mangrove/test/CMakeFiles/test_mangrove.dir/all] Error 2
make: *** [all] Error 2

Essentially, the call on the bsoncxx side expects the 2nd parameter to be of type bsoncxx::document::view_or_value but instead the parameter is of type bsoncxx::document::value.

There are many other build issues that I've worked around, so I would say that this code base isn't very stable against the latest mongocxx drivers. Is Mangrove out of date with mongocxx and will there be updates to Mangrove to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant