Re: Policy-oriented programming.

2011-09-26 Thread Gor F. Gyolchanyan
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.

Policy-oriented programming.

2011-09-25 Thread Gor F. Gyolchanyan
Hi, D.learn! I encountered a problem, while i was designing a fast, performance-critical image storage mechanism. Here's what i want to do: Have a FragmentTraits struct, which contains fields, like number of components, size in bytes of the components, padding of the components in bytes, etc.