How to create array of references?
You can't. The C++ language doesn't support arrays of
references. You have the choice to either create an array of
objects:

timeOUT TO[] = {timeOUT("SW0",TIMEOUT_SW0), timeOUT("SW1",TIMEOUT_SW1);}


or an array of pointers:

timeOUT *TO[] = { &amp;timeOut_SW0, &amp;timeOut_SW1 };