Skip to content

std::tuple_size should be a struct #39218

@llvmbot

Description

@llvmbot
Bugzilla Link 39871
Resolution FIXED
Resolved on Jan 11, 2019 15:19
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor
CC @mclow,@zygoloid

Extended Description

Currently std::tuple_size is declared as class tuple_size. According to the C++ standard, tuple_size is a struct (http://eel.is/c++draft/tuple.helper#lib:tuple_size).

This creates portability problems between libcxx and libstdc++, which correctly declares it as a struct. Currently using either will result in -Wmismatched-tags.

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillalibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions