Timeline for Works with gcc, not with Arduino. error: taking address of temporary array
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 23, 2017 at 12:37 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
| Jun 26, 2016 at 9:25 | comment | added | Nick Gammon♦ | Recent versions of the IDE use C++11, so whether or not it is valid in C++ doesn't really matter. | |
| Jun 26, 2016 at 7:12 | comment | added | underscore_d |
As explained in the very thread you linked, ( type[] ){val, ues} is not a valid way to create a temporary in C++: stackoverflow.com/questions/15458883/… The solution is to typedef it.
|
|
| Mar 3, 2016 at 20:14 | comment | added | Majenko | I hate it when people use non-standard arduino specific types like byte, when there is a perfectly good and standard uint8_t available... | |
| Mar 2, 2016 at 20:41 | comment | added | Nick Gammon♦ |
As Majenko said, memcpy would be better than doing a byte-by-byte copy.
|
|
| Mar 2, 2016 at 20:38 | history | answered | Nick Gammon♦ | CC BY-SA 3.0 |