szymon_dybczak
Esteemed Contributor III

Your first approach didn't work, because named_struct needs it's arguments on odd postition to be foldable.
So you can think of it in following way, at compile time compiler needs to "see" this value. 
That's why even if you prepared proper expression it didnt work