<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:01: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-1248] Document that Windows users should build libbson without extra alignment</title>
                <link>https://jira.mongodb.org/browse/CXX-1248</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Compiling the driver under Windows with Visual Studio 14 2015 produces the following warning&lt;/p&gt;

&lt;p&gt;mongo-cxx-driver-r3.1.1\src\bsoncxx\builder\core.cpp(199): warning C4316: &apos;bsoncxx::v_noabi::builder::core::impl&apos;: object allocated on the heap may not be aligned 128&lt;/p&gt;</description>
                <environment>Windows, Visual Studio 14 2015</environment>
        <key id="362428">CXX-1248</key>
            <summary>Document that Windows users should build libbson without extra alignment</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="daniel.lyubomirov">Daniel Lyubomirov</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 8 Mar 2017 10:14:13 +0000</created>
                <updated>Fri, 9 Dec 2022 12:08:59 +0000</updated>
                            <resolved>Mon, 12 Apr 2021 20:42:16 +0000</resolved>
                                    <version>3.1.1</version>
                                                    <component>Documentation</component>
                                        <votes>1</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="3714038" author="xgen-internal-githook" created="Mon, 12 Apr 2021 20:39:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benjamin Rewis&apos;, &apos;email&apos;: &apos;32186188+benjirewis@users.noreply.github.com&apos;, &apos;username&apos;: &apos;benjirewis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1248&quot; title=&quot;Document that Windows users should build libbson without extra alignment&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1248&quot;&gt;&lt;del&gt;CXX-1248&lt;/del&gt;&lt;/a&gt; Document disabling extra alignment on windows (#777)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/142c5e39766cb0f5515d55f37b95acb20ca790e2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/142c5e39766cb0f5515d55f37b95acb20ca790e2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3698537" author="benji.rewis" created="Fri, 2 Apr 2021 14:35:21 +0000"  >&lt;p&gt;new PR:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/777&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/777&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1549753" author="rassi@10gen.com" created="Fri, 14 Apr 2017 19:37:04 +0000"  >&lt;p&gt;Link to MSDN documentation for C4316: &lt;a href=&quot;https://msdn.microsoft.com/en-us/library/dn448573.aspx&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://msdn.microsoft.com/en-us/library/dn448573.aspx&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1520544" author="rassi@10gen.com" created="Thu, 9 Mar 2017 22:37:30 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=daniel.lyubomirov&quot; class=&quot;user-hover&quot; rel=&quot;daniel.lyubomirov&quot;&gt;daniel.lyubomirov&lt;/a&gt;, thanks for reporting this issue.  I can confirm that this warning reproduces on our VS2015 builds in our continuous integration system, and am moving this ticket to the triaged state.  We&apos;ve scheduled time in the next two months to go through all of our VS2015 warnings (and warnings on other compilers, too) and file tickets for them as part of scoping the work for related ticket &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-936&quot; title=&quot;Compile with all warnings enabled and warnings as errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-936&quot;&gt;CXX-936&lt;/a&gt;, so we appreciate your help with reporting this one.&lt;/p&gt;

&lt;p&gt;To fix this, we should ensure that any class that has a bson_t as a member (which is declared with &amp;#95;&amp;#95;declspec(align(...)) when building with Visual Studio, and with &amp;#95;&amp;#95;attribute&amp;#95;&amp;#95;((aligned(...)) when building elsewhere) is overriding operator new and operator delete, so as to ensure that instances of those classes are correctly aligned when they are heap-allocated.  Alternatively, we could ask the C driver team if they&apos;d consider removing this alignment requirement for bson_t.&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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CXX-1569</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY24Q1</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6ms7:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1675">Perl/CXX 2017-05-05</customfieldvalue>
    <customfieldvalue id="1715">Perl/CXX 2017-05-26</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>