Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Turn resource adaptors into alias templates #1457

Open
Assignees
bdice
Labels
cppPertains to C++ codefeature requestNew feature or request
@miscco

Description

@miscco

Currently all resource adaptors are templated on their upstream resource.

Transitioning toresource_ref this is superfluous, as we do not need to know the upstream type anymore.

However, we cannot simply remove the template argument, as that would break user code. So we need to first introduce an indirection using an alias:

template<class>structresource_adaptor_impl{};template<classUpstream>[[deprecated("Use resource_adaptor_ref instead")]]using resource_adaptor = resource_adaptor_impl<Upstream>;using resource_adaptor_ref = resource_adaptor_impl<int>;

Metadata

Metadata

Assignees

Labels

cppPertains to C++ codefeature requestNew feature or request

Type

No type

Projects

  • Status

    To-do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp