This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] reduce template instantiation depth in <variant>


Hi,

Currently, std::variant exceeds the default ftemplate-depth parameter
when instantiated with 297 types. This small patch increases this
ceiling to 446 types (from the bottom of the template stack).

This was accomplished by using fold expressions instead of the __and_ template.

Thanks,
Barrett

Attachment: variant_patch.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]