Thanks! This is exactly what i wanted! Seems like the problem of not being able to pass struct template parameters can be worked around by putting the struct attribute access in a mixin.