Boost logo

Boost :

Subject: Re: [boost] [config] Feature request: BOOST_OVERRIDE
From: John Maddock (john_at_[hidden])
Date: 2013-07-12 12:26:10


>> I think it will be a nice feature to add BOOST_OVERRIDE to Boost.Config
>>> in a manner similar to BOOST_CONSTEXPR. It's a nice keyword and it would
>>> be nice if people could make use of it when it's available.
>>>
>>
>> +1, it would be nice for projects which are built with different
>> compilers
>> (pre/post C++11).
>>
>
> I'd like to have a BOOST_FINAL macro too. Compiler may apply additional
> optimizations if it knows that class or method is final (for example it
> can
> inline method calls and do not use vtable for that method).

Would someone like to create some patches for these - we need two new
macros:

BOOST_NO_CXX11_OVERRIDE
BOOST_NO_CXX11_FINAL

plus tests and docs, and then the BOOST_FINAL/BOOST_OVERRIDE macros become
trivial. The process for adding new macros is documented here:
http://www.boost.org/doc/libs/1_54_0/libs/config/doc/html/boost_config/guidelines_for_boost_authors.html#boost_config.guidelines_for_boost_authors.adding_new_defect_macros

Thanks! John.


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