bool function()
{
static const vector<unsigned char>header = {0x00 , 0x01 , 0x02};
//use header
}
Threads could be active before initialization in a constructor in the class using my function
bool function()
{
static const vector<unsigned char>header = {0x00 , 0x01 , 0x02};
//use header
}
Threads could be active before initialization in a constructor in the class using my function