Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use Boost Program Options without RTTI?

I would like to disable RTTI in a project of mine. However, this project uses Boost Program Options which itself depends on Boost Any which does not support -fno-rtti.

I was wondering if there was any solution to use Boost Program without RTTI ? By defining a macro or by not using some of the features ?

Thanks

like image 1000
Baptiste Wicht Avatar asked Mar 17 '26 17:03

Baptiste Wicht


1 Answers

The answer is "no". Boost.PO is based on Boost.Any and this dependence can't be avoided by users currently. Boost.Any gives the main storage structure of Boost.PO so you can't compile some useful part of PO without Any.

like image 109
Riga Avatar answered Mar 20 '26 06:03

Riga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!