<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:03:55 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CXX-1786] Document stream is not available</title>
                <link>https://jira.mongodb.org/browse/CXX-1786</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;I have installed Mongo CXX driver and added the following headers in my application:&lt;/p&gt;

&lt;p&gt;```cpp&lt;br/&gt;
#include &amp;lt;bsoncxx/json.hpp&amp;gt;&lt;/p&gt;

&lt;p&gt;#include &amp;lt;mongocxx/stdx.hpp&amp;gt;&lt;br/&gt;
```&lt;br/&gt;
&#160;&lt;br/&gt;
When I try to create a document using `bsoncxx::builder::stream`, I receive the following error:&lt;br/&gt;
&#160;&lt;br/&gt;
```sh&lt;br/&gt;
error: &#8216;bsoncxx::v_noabi::builder::stream&#8217; has not been declared&lt;br/&gt;
```&lt;br/&gt;
&#160;&lt;br/&gt;
If I open the code in &lt;b&gt;/usr/local/include/bsoncxx/v_noabi/bsoncxx/builder/basic/helpers.hpp&lt;/b&gt; , only the basic is available:&lt;br/&gt;
&#160;&lt;br/&gt;
```cpp&lt;br/&gt;
#pragma once&lt;/p&gt;

&lt;p&gt;#include &amp;lt;bsoncxx/builder/concatenate.hpp&amp;gt;&lt;/p&gt;

&lt;p&gt;#include &amp;lt;bsoncxx/config/prelude.hpp&amp;gt;&lt;/p&gt;

&lt;p&gt;namespace bsoncxx {&lt;/p&gt;

&lt;p&gt;BSONCXX_INLINE_NAMESPACE_BEGIN&lt;/p&gt;

&lt;p&gt;namespace builder {&lt;/p&gt;

&lt;p&gt;namespace basic &lt;/p&gt;
{

using bsoncxx::builder::concatenate;

}
&lt;p&gt; // namespace basic&lt;/p&gt;

&lt;p&gt;} // namespace builder&lt;/p&gt;

&lt;p&gt;BSONCXX_INLINE_NAMESPACE_END&lt;/p&gt;

&lt;p&gt;} // namespace bsoncxx&lt;/p&gt;

&lt;p&gt;#include &amp;lt;bsoncxx/config/postlude.hpp&amp;gt;&lt;br/&gt;
```&lt;br/&gt;
&#160;&lt;br/&gt;
Am I importing from the wrong place, or is a error in this version / I made the installation of a wrong way ? How can I fix this and use the stream (for documents that has binary field(s), is it the basic recommended ?)&lt;/p&gt;</description>
                <environment>Linux Mint 19.1 - XFCE</environment>
        <key id="799320">CXX-1786</key>
            <summary>Document stream is not available</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="samantha.ritter@mongodb.com">Samantha Ritter</assignee>
                                    <reporter username="sphinxs">sphinxs</reporter>
                        <labels>
                    </labels>
                <created>Wed, 12 Jun 2019 19:56:53 +0000</created>
                <updated>Sat, 16 Oct 2021 17:50:49 +0000</updated>
                            <resolved>Mon, 23 Sep 2019 19:39:27 +0000</resolved>
                                    <version>3.3.0</version>
                                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="2438596" author="sphinxs" created="Sun, 29 Sep 2019 18:57:34 +0000"  >&lt;p&gt;Hi @Samantha. I had already fixed this in my project, thanks for the reply ( :&lt;/p&gt;</comment>
                            <comment id="2428886" author="samantha.ritter@10gen.com" created="Mon, 23 Sep 2019 19:38:58 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sphinxs&quot; class=&quot;user-hover&quot; rel=&quot;sphinxs&quot;&gt;sphinxs&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for your ticket.  I realize it&apos;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 &lt;b&gt;bsoncxx/builder/stream/helpers.hpp&lt;/b&gt;.  To use the stream builder in your code, include the following header files:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;#include &amp;lt;bsoncxx/builder/stream/helpers.hpp&amp;gt;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;#include &amp;lt;bsoncxx/builder/stream/document.hpp&amp;gt;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;#include &amp;lt;bsoncxx/builder/stream/array.hpp&amp;gt;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;I&apos;m going to resolve this issue, but if you continue to have problems with your application, please feel free to open a new ticket.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;br/&gt;
Samantha Ritter&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hutthr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>