I have a compilation error when i attempt to compile the following simple code:
uint8_t latestMessageID[4];
struct Notification {
uint8_t uuid[4];
...
};
Notification notificationList[NOTIFICATION_LIST_SIZE];
void setup()
{
Notification notificationList[NOTIFICATION_LIST_SIZE];
notificationList[0].uuid = latestMessageID; // Compilation error here
...
}
Error:
expression must be a modifiable lvalue
What is the cause of this error and how can i approach a solution?
std::arraywhich has a copy assignment operator.