mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Schlicht (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-7220) 'EXPECT_SOME' and other asserts don't work with 'Try's that have a custom error state.
Date Wed, 08 Mar 2017 11:29:38 GMT
Jan Schlicht created MESOS-7220:
-----------------------------------

             Summary: 'EXPECT_SOME' and other asserts don't work with 'Try's that have a custom
error state.
                 Key: MESOS-7220
                 URL: https://issues.apache.org/jira/browse/MESOS-7220
             Project: Mesos
          Issue Type: Bug
          Components: stout
            Reporter: Jan Schlicht
            Priority: Minor


MESOS-5110 introduced an additional template parameter for {{Try}} to support custom error
types. Using these values with {{EXPECT_SOME}} doesn't work, i.e.
{code}
Try<Foo, FooError> foo = bar();
EXPECT_SOME(foo);
{code}
won't compile. The other assertions in {{stout/gtest.hpp}} are likely affected as well.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message