1212
LWG-3891 LWG-3870 breaks `std::expected<cv T, E>` · Issue #6220 · microsoft/STL · GitHub
Skip to content

LWG-3891 LWG-3870 breaks std::expected<cv T, E> #6220

@StephanTLavavej

Description

@StephanTLavavej

LWG-3891 LWG-3870 breaks std::expected<cv T, E>

We have:

#if 0 // TRANSITION, LWG-3891
assert(
(expected<const QualDistinction, char>{unexpect} = {QualDistinction{}}).value().qual_ == Qualification::None);
{
expected<const QualDistinction, char> ex{in_place};
assert((ex = {QualDistinction{}}).value().qual_ == Qualification::None);
ex = unexpected<char>{'*'};
assert((ex = {QualDistinction{}}).value().qual_ == Qualification::None);
}
#endif // ^^^ no workaround ^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    LWGLibrary Working Group issuefixedSomething works now, yay!

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions