<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:03:23 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-1633] Getting a null terminated string::view_or_value may copy unnecessarily</title>
                <link>https://jira.mongodb.org/browse/CXX-1633</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;string::view_or_value can be constructed from a &lt;tt&gt;const char*&lt;/tt&gt;. This &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/blob/releases/v3.3/src/bsoncxx/string/view_or_value.hpp#L48-L56&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;must be a null terminated string&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The bsoncxx::string::view_or_value has a &lt;tt&gt;terminated&lt;/tt&gt; method, which guarantees to return a view_or_value containing a null terminated representation of the string. This does not take into account the case where the view_or_value was constructed with a &lt;tt&gt;const char*&lt;/tt&gt;, copying it when it really doesn&apos;t need to.&lt;/p&gt;

&lt;p&gt;We should add a boolean member to string::view_or_value to remember if it was constructed with a &lt;tt&gt;const char*&lt;/tt&gt;, and if so, avoid copying when returning a null terminated view_or_value.&lt;/p&gt;</description>
                <environment></environment>
        <key id="585632">CXX-1633</key>
            <summary>Getting a null terminated string::view_or_value may copy unnecessarily</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 8 Aug 2018 19:40:07 +0000</created>
                <updated>Thu, 6 Sep 2018 18:59:49 +0000</updated>
                            <resolved>Thu, 6 Sep 2018 18:59:49 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1995585" author="kevin.albertson" created="Thu, 6 Sep 2018 18:59:49 +0000"  >&lt;p&gt;Agreed, string::view_or_value isn&apos;t used much anyway.&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|htvmnb:</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>