<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:02:06 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-1296] Call to overloaded operator scoped_bson_t ambiguous</title>
                <link>https://jira.mongodb.org/browse/CXX-1296</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;While trying to build mongo-cxx-driver as:&lt;/p&gt;

&lt;p&gt;cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=yes -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=/usr -DBSONCXX_POLY_USE_MNMLSTC=no -DBSONCXX_POLY_USE_STD_EXPERIMENTAL=1&lt;/p&gt;

&lt;p&gt;the build fails with following errors:&lt;/p&gt;

&lt;p&gt;/home/amitprakash/mongocxx/mongo-cxx-driver-r3.1.1/src/mongocxx/bulk_write.cpp: In member function &#8216;void mongocxx::v_noabi::bulk_write::append(const mongocxx::v_noabi::model::write&amp;amp;)&#8217;:&lt;br/&gt;
/home/amitprakash/mongocxx/mongo-cxx-driver-r3.1.1/src/mongocxx/bulk_write.cpp:69:88: error: call of overloaded &#8216;scoped_bson_t(std::enable_if&amp;lt;true, bsoncxx::v_noabi::document::value&amp;gt;::type)&#8217; is ambiguous&lt;br/&gt;
             scoped_bson_t options(options_builder &amp;lt;&amp;lt; bsoncxx::builder::stream::finalize);&lt;br/&gt;
                                                                                        ^&lt;br/&gt;
In file included from /home/amitprakash/mongocxx/mongo-cxx-driver-r3.1.1/src/mongocxx/bulk_write.cpp:21:0:&lt;br/&gt;
/home/amitprakash/mongocxx/mongo-cxx-driver-r3.1.1/src/mongocxx/private/libbson.hh:68:5: note: candidate: mongocxx::v_noabi::libbson::scoped_bson_t::scoped_bson_t(std::experimental::fundamentals_v1::optional&amp;lt;bsoncxx::v_noabi::view_or_value&amp;lt;bsoncxx::v_noabi::document::view, bsoncxx::v_noabi::document::value&amp;gt; &amp;gt;)&lt;br/&gt;
     scoped_bson_t(bsoncxx::stdx::optional&amp;lt;bsoncxx::document::view_or_value&amp;gt; doc);&lt;br/&gt;
     ^~~~~~~~~~~~~&lt;br/&gt;
/home/amitprakash/mongocxx/mongo-cxx-driver-r3.1.1/src/mongocxx/private/libbson.hh:61:14: note: candidate: mongocxx::v_noabi::libbson::scoped_bson_t::scoped_bson_t(bsoncxx::v_noabi::document::view_or_value)&lt;br/&gt;
     explicit scoped_bson_t(bsoncxx::document::view_or_value doc);&lt;br/&gt;
              ^~~~~~~~~~~~~&lt;br/&gt;
/home/amitprakash/mongocxx/mongo-cxx-driver-r3.1.1/src/mongocxx/bulk_write.cpp:90:88: error: call of overloaded &#8216;scoped_bson_t(std::enable_if&amp;lt;true, bsoncxx::v_noabi::document::value&amp;gt;::type)&#8217; is ambiguous&lt;br/&gt;
             scoped_bson_t options(options_builder &amp;lt;&amp;lt; bsoncxx::builder::stream::finalize);&lt;br/&gt;
                                                                                        ^&lt;br/&gt;
In file included from /home/amitprakash/mongocxx/mongo-cxx-driver-r3.1.1/src/mongocxx/bulk_write.cpp:21:0:&lt;br/&gt;
/home/amitprakash/mongocxx/mongo-cxx-driver-r3.1.1/src/mongocxx/private/libbson.hh:68:5: note: candidate: mongocxx::v_noabi::libbson::scoped_bson_t::scoped_bson_t(std::experimental::fundamentals_v1::optional&amp;lt;bsoncxx::v_noabi::view_or_value&amp;lt;bsoncxx::v_noabi::document::view, bsoncxx::v_noabi::document::value&amp;gt; &amp;gt;)&lt;br/&gt;
     scoped_bson_t(bsoncxx::stdx::optional&amp;lt;bsoncxx::document::view_or_value&amp;gt; doc);&lt;br/&gt;
     ^~~~~~~~~~~~~&lt;br/&gt;
/home/amitprakash/mongocxx/mongo-cxx-driver-r3.1.1/src/mongocxx/private/libbson.hh:61:14: note: candidate: mongocxx::v_noabi::libbson::scoped_bson_t::scoped_bson_t(bsoncxx::v_noabi::document::view_or_value)&lt;br/&gt;
     explicit scoped_bson_t(bsoncxx::document::view_or_value doc);&lt;br/&gt;
etc&lt;/p&gt;</description>
                <environment>Gentoo, gcc 6.3.0</environment>
        <key id="371487">CXX-1296</key>
            <summary>Call to overloaded operator scoped_bson_t ambiguous</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="13202">Works as Designed</resolution>
                                        <assignee username="sam.rossi@mongodb.com">Samuel Rossi</assignee>
                                    <reporter username="amit.ambasta@delhivery.com">Amit Ambasta</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Apr 2017 11:21:19 +0000</created>
                <updated>Fri, 27 Oct 2023 13:13:46 +0000</updated>
                            <resolved>Wed, 12 Apr 2017 16:19:00 +0000</resolved>
                                    <version>3.1.1</version>
                                                    <component>Portability</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1547249" author="david.golden" created="Wed, 12 Apr 2017 16:18:45 +0000"  >&lt;p&gt;Hi, Amit.  We may add C++17 support in the future and are tracking that in &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1306&quot; title=&quot;Require at least C++17&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1306&quot;&gt;&lt;del&gt;CXX-1306&lt;/del&gt;&lt;/a&gt;.  We also have a &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1179&quot; title=&quot;Investigate vendoring MNMLSTC Core&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1179&quot;&gt;&lt;del&gt;CXX-1179&lt;/del&gt;&lt;/a&gt; to explore vendoring mnmlstc to avoid the privileges needed during the build stage.&lt;/p&gt;

&lt;p&gt;As you&apos;ve got this building just fine with Boost, I&apos;m going to close this ticket.&lt;/p&gt;
</comment>
                            <comment id="1543264" author="amit.ambasta@delhivery.com" created="Fri, 7 Apr 2017 06:41:37 +0000"  >&lt;p&gt;I was able to build it with boost just fine. Would C++17 support be formally added in a future release?&lt;/p&gt;

&lt;p&gt;As for MNMLSTC Core, since the project tries to build and install it as a dependency, it runs into sandbox violations when PREFIX is specified.&lt;/p&gt;</comment>
                            <comment id="1542895" author="sam.rossi" created="Thu, 6 Apr 2017 18:49:17 +0000"  >&lt;p&gt;Thanks for filing the ticket with us! Currently, the std::experimental polyfill does not work with the driver for GCC 6.x. While it does work with GCC 5.4, we still don&apos;t recommend using std::experimental. Using either MNMLSTC Core (our default polyfill on Linux) or Boost will should fine with either GCC 5 or 6 on Linux. Note that the driver vendors MNMLSTC Core, so you won&apos;t need to install any other dependencies to use it.&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|hsxqfr:</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>