Skip to content

Some errors on ppt #3

@lasagnaphil

Description

@lasagnaphil
  • default initialization for std::array<T, N> doesn't work well when T is primitive type
  • multidimensional std::array intiialization wrong => need extra ( {{ {{1, 2}}, {{3, 4}} }} )
    • Why? intialziation list doesn't work well for aggregate types
  • grr(std::string& arr); grr("asdf") doesn't work (No implicit constructor for C array -> std::string&)

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