These are chat archives for Makuna/NeoPixelBus

6th
Sep 2015
Michael Miller
@Makuna
Sep 06 2015 01:41
That [=] means to use all referenced variables as values when the lambda is created, so they can't be changed, ampersand I believe means pass all by reference. I also believe the syntax allows setting this per variable.
Michael Miller
@Makuna
Sep 06 2015 06:06
Search the esp8266/arduino for cxaguardnerrors, you will fund a description from Igrr to what they mean and possible solitions.
sticilface
@sticilface
Sep 06 2015 07:27
I remember the chats about that. It
sticilface
@sticilface
Sep 06 2015 08:17
mmm... don't think i'll be solving the cxa_guard... anytime soon!
I tried passing by reference, but i don't think that is actually what i need. I need each callback to have its own static variables so that it can manage its own animations. I guess using static is the right way, but that is not going to work... mmm...
you are right you can set this by variable as well, which reduces the overhead of using lambdas... might be useful in general actually to use that instead of [=]...