Skip to content
Snippets Groups Projects
  • Eric Fiselier's avatar
    77d76b71
    [libc++] Fix recursive instantiation in std::array. · 77d76b71
    Eric Fiselier authored
    The use of the `&& ...` fold expression in std::array's deduction guides
    recursively builds a set of binary operator expressions of depth N where
    `N` is the number of elements in the initializer.
    
    This is problematic because arrays may be large, and instantiation
    depth is limited.
    
    This patch addresses the issue by flattening the SFINAE using
    the existing `__all` type trait.
    
    (cherry picked from commit c6eb584c)
    77d76b71
    History
    [libc++] Fix recursive instantiation in std::array.
    Eric Fiselier authored
    The use of the `&& ...` fold expression in std::array's deduction guides
    recursively builds a set of binary operator expressions of depth N where
    `N` is the number of elements in the initializer.
    
    This is problematic because arrays may be large, and instantiation
    depth is limited.
    
    This patch addresses the issue by flattening the SFINAE using
    the existing `__all` type trait.
    
    (cherry picked from commit c6eb584c)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.