Boost logo

Boost :

Subject: [boost] Tick: Trait instrospection and concepts library now for C++11
From: paul Fultz (pfultz2_at_[hidden])
Date: 2014-06-05 01:53:05


Hi, I've just update the Tick library to support C++11 compilers including support for gcc 4.6: https://github.com/pfultz2/Tick To support gcc 4.6 an additional `TICK_RETURNS` macro was added. So while this can be written for gcc 4.7 or later:     TICK_TRAIT(is_incrementable)     {         template<class T>         auto requires_(T&& x) -> TICK_VALID(             returns<int>(x++)         );     }; This can be written in order to support gcc 4.6:     TICK_TRAIT(is_incrementable)     {         template<class T>         auto requires_(T&& x) -> TICK_VALID(             TICK_RETURNS(x++, int)         );     }; Of course, the macro is optional and only needed to support older compilers. Any other feedback would be appreciated. Thanks, Paul


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk