<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:37 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-576] shared_buffer.h uses placement new without including &lt;new&gt;</title>
                <link>https://jira.mongodb.org/browse/CXX-576</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;mongo/util/shared_buffer.h uses a placement new on line 60. It does not include &amp;lt;new&amp;gt; prior to that. Nor does it use std:: as a prefix.&lt;/p&gt;

&lt;p&gt;When including  &quot;mongo/client/dbclient.h&quot;, depending on other includes in the cpp, this results in the occasional compile error :&lt;/p&gt;

&lt;p&gt;%MONGO_INCLUDE%\mongo/util/shared_buffer.h(60): error C2061: syntax error : identifier &apos;holderPrefixedData&apos;&lt;/p&gt;</description>
                <environment></environment>
        <key id="194134">CXX-576</key>
            <summary>shared_buffer.h uses placement new without including &lt;new&gt;</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="-1">Unassigned</assignee>
                                    <reporter username="sxhickman">Steve Hickman</reporter>
                        <labels>
                    </labels>
                <created>Sun, 5 Apr 2015 19:21:42 +0000</created>
                <updated>Mon, 6 Apr 2015 01:46:42 +0000</updated>
                            <resolved>Mon, 6 Apr 2015 01:46:42 +0000</resolved>
                                    <version>legacy-1.0.0</version>
                                                    <component>Implementation</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="873159" author="acm" created="Mon, 6 Apr 2015 01:46:42 +0000"  >&lt;p&gt;Thanks for providing the additional info.&lt;/p&gt;

&lt;p&gt;I&apos;ve taken a look at the C++ standard, and, if I&apos;ve ready correctly, a new expression (which placement new is) does not require an inclusion of \&amp;lt;new\&amp;gt;.&lt;/p&gt;

&lt;p&gt;Given that, I&apos;m going to close this as works as designed, but please feel free to re-open if you have further issues along these lines.&lt;/p&gt;</comment>
                            <comment id="873110" author="sxhickman" created="Sun, 5 Apr 2015 19:37:25 +0000"  >&lt;p&gt;Apologies: Problem due to inclusion of debug version of new (see the code below) in my test program. Removing that code resolved the problem. No change needed to shared_buffer.h&lt;/p&gt;

&lt;p&gt;// To detect memoryleak along with line number, added below lines of code&lt;br/&gt;
#define _CRTDBG_MAP_ALLOC&lt;br/&gt;
#include &amp;lt;stdlib.h&amp;gt; &lt;br/&gt;
#include &amp;lt;crtdbg.h&amp;gt;&lt;/p&gt;

&lt;p&gt;#ifdef _DEBUG&lt;br/&gt;
#define DEBUG_NEW new(&lt;em&gt;NORMAL_BLOCK, __FILE&lt;/em&gt;&lt;em&gt;, __LINE&lt;/em&gt;_)&lt;br/&gt;
#define new DEBUG_NEW&lt;br/&gt;
#endif&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|hs7szr:</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>