[CXX-1786] Document stream is not available Created: 12/Jun/19 Updated: 16/Oct/21 Resolved: 23/Sep/19 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | BSON |
| Affects Version/s: | 3.3.0 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | sphinxs | Assignee: | Samantha Ritter (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux Mint 19.1 - XFCE |
||
| Description |
|
I have installed Mongo CXX driver and added the following headers in my application: ```cpp #include <mongocxx/stdx.hpp> #include <bsoncxx/builder/concatenate.hpp> #include <bsoncxx/config/prelude.hpp> namespace bsoncxx { BSONCXX_INLINE_NAMESPACE_BEGIN namespace builder { namespace basic { using bsoncxx::builder::concatenate; }// namespace basic } // namespace builder BSONCXX_INLINE_NAMESPACE_END } // namespace bsoncxx #include <bsoncxx/config/postlude.hpp> |
| Comments |
| Comment by sphinxs [ 29/Sep/19 ] | |||
|
Hi @Samantha. I had already fixed this in my project, thanks for the reply ( : | |||
| Comment by Samantha Ritter (Inactive) [ 23/Sep/19 ] | |||
|
Hi sphinxs, Thank you for your ticket. I realize it's been a while since you filed this, but are you still having this issue? The stream builder and the basic builder are defined in separate headers. You should see the stream builder convenience methods in bsoncxx/builder/stream/helpers.hpp. To use the stream builder in your code, include the following header files:
I'm going to resolve this issue, but if you continue to have problems with your application, please feel free to open a new ticket. Thanks! |