I have been given an exercise where I need to use a type alias for a 'reference to 3 integers'. Although I found success using typedef
I'm not able to replicate it by using
introduced by c++11
.
Code :
typedef int (& int_ref)[3]; \\success
using int_ref2 = (int &) [3]; \\error
Should I then just use something like ...
using int_ref2 = int [3];
int_ref2 & iruvar ...
using int_ref2 = int (&)[3]