• Yedidya Feldblum's avatar
    ConditionallyExistent<typename> · b29d023b
    Yedidya Feldblum authored
    Summary:
    [Folly] `ConditionallyExistent<typename>`.
    
    For when we need extra member fields in dbg builds, but want to save the space in opt builds. Or other situations along similar lines, but with perhaps another the statically-known condition.
    
    Conditional compilation can have some nasty side-effects. Best to avoid it. Let the compiler see everything, rather than having the preprocessor ruin our day. Let the optimizer remove code that will never be called, after the compiler has seen it. Let us have a single AST in our source file, not one AST for dbg and one for opt, or other statically-known conditions.
    
    Reviewed By: andriigrynenko
    
    Differential Revision: D2879397
    
    fb-gh-sync-id: d631141a984eebd46674f27a40a97f670eb33f54
    b29d023b
Makefile.am 7.84 KB