<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:01:35 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-1154] Allow stdx::optional to be used in Catch comparison expressions</title>
                <link>https://jira.mongodb.org/browse/CXX-1154</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;If &quot;a&quot; and &quot;b&quot; are of type stdx::optional&amp;lt;T&amp;gt;, then the test assertion &quot;REQUIRE(a == b);&quot; may not compile under certain configurations.&lt;/p&gt;

&lt;p&gt;Specifically, on the driver&apos;s current Windows CI hosts (which use use Boost polyfills for stdx), these statements fail to compile with the following error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;error C2338: If you want to output boost::optional, include header &amp;lt;boost/optional/optional_io.hpp&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;This is due to the fact that Catch attempts to convert comparison operands to strings with&lt;br/&gt;
operator&amp;lt;&amp;lt;(), in case of an assertion failure.&lt;/p&gt;

&lt;p&gt;After pulling in optional_io.hpp, the following error is still generated for certain types, even types that Catch is normally perfectly happy to normally include in REQUIRE() comparison statements (like enum class types):&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;error C2679: binary &apos;&amp;lt;&amp;lt;&apos;: no operator found which takes a right-hand operand of type &apos;T&apos; (or there is no acceptable conversion)&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;We should come up with some sort of solution that makes it legal to compare objects of type stdx::optional&amp;lt;T&amp;gt; in test cases whenever it is legal to compare objects of type T.&lt;/p&gt;</description>
                <environment></environment>
        <key id="335768">CXX-1154</key>
            <summary>Allow stdx::optional to be used in Catch comparison expressions</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="3">Duplicate</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="backlog-cxx-driver">Backlog - CXX Driver Team</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Dec 2016 23:55:06 +0000</created>
                <updated>Tue, 17 Apr 2018 20:59:41 +0000</updated>
                            <resolved>Tue, 17 Apr 2018 20:58:41 +0000</resolved>
                                                    <fixVersion>3.3.0-rc0</fixVersion>
                                    <component>Testing</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1866971" author="jesse" created="Tue, 17 Apr 2018 20:59:41 +0000"  >&lt;p&gt;This work was done, AFAICT, while updating the vendored Catch2 header.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="516845">CXX-1537</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hssg0f:</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>