Skip to content

To consider a const return type of operators "tuple::operator=", to be consistent in C++23. #2577

@MikeDvorskiy

Description

@MikeDvorskiy

I've got it. You mean fact that since C++23 std::tuple::operator= return const tuple...

https://en.cppreference.com/w/cpp/utility/tuple/operator=.html

  1. I think we can consider a separate path for oneDPL tuple, which adds const tuple as a return type for the operators "operator=". And a separate question here whether we got another oneDPL tuple issues.
  2. In this PR I added only additional one version of operator= in context of this PR (zip_view implementation). And I did it in consistent with other signatures of "operator=".

So, I suggest a) in this PR keep the "operator=" as is, in consistent with another versions of "operator=".
b) Create an issue for oneDPL tuple regarding const return type of operators "operator=", to be consistent in C++23.

Originally posted by @MikeDvorskiy in #1877 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions