Skip to content

error: deducing from brace-enclosed initializer list requires #include <initializer_list> #6609

@Sod-Almighty

Description

@Sod-Almighty

One of the things that really gets up my nose is when the compiler explicitly instructs the programmer to insert code that blatantly does not work.

auto CHIP_MAPPINGS = {PC3, PC2, PC1, PC0, PB2, P1, P2, P3, PB1, P4, P5, P6, P7, P0, PB0, PD7};

error: deducing from brace-enclosed initializer list requires #include <initializer_list>

Okay, so l do what I'm told:

#include <initializer_list>
auto CHIP_MAPPINGS = {PC3, PC2, PC1, PC0, PB2, P1, P2, P3, PB1, P4, P5, P6, P7, P0, PB0, PD7};

fatal error: initializer_list: No such file or directory

Might I suggest that you modify your compiler so that it doesn't blatantly lie to its users?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bugType: WontfixArduino has decided that it will not resolve the reported issue or implement the requested feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions