
"Pavel Chikulaev" <pavel.chikulaev@gmail.com> wrote
I've got a small feature request to type_of library:
1) BOOST_TYPEOF_CONSTANT_COMPLEXITY Macro is defined if typeof can't evaluated with constant complexity 2) BOOST_TYPEOF_LINEAR_COMPLEXITY Macro is defined if typeof can't evaluated with linear complexity
Not sure I fully understand this... The complexity of typeof is constant if either native __typeof__ or MSVC trick (by Igor Chesnokov) is used. In this case also no registration is required. In this mode BOOST_TYPEOF_NATIVE is defined. If emulation is used, the complexity of typeof is (almost) linear, registration is required, and BOOST_TYPEOF_COMPLIANT (probably should be changed to BOOST_TYPEOF_EMULATION) defined. Is this what you meant or did you have something else in mind? Regards, Arkadiy