Composing features at compile time
Jacob Carlborg
doob at me.com
Sun Nov 24 11:57:03 PST 2013
On 2013-11-24 14:18, Jacob Carlborg wrote:
> Does anyone know a good way of composing features at compile time? Say I
> have a struct or class that I want to support different features that
> are configurable at compile time. One way would be to just pass in a
> couple of boolean flags and use static-if, like this:
Here's an actual problem I'm trying to solve:
http://forum.dlang.org/thread/l6suan$22f4$1@digitalmars.com?page=2#post-l6tlhj:242ms1:241:40digitalmars.com
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list