Thanks I was thinking the same

but the question remains : if that possible at all ?

the std draf in sec 9
"A class can be declared within a function definition; such a class is called a local class" , see declared ,
anyway I try your approach