Engine
Engine copied to clipboard
Switch from boost to ext and ql includes
Upstream QuantLib is moving from boost classes to std classes for shared_ptr, optional, etc. To ease the transition they added the ext:: namespace which has aliases to either boost or std classes depending on the config options. Are you planning to update your code to use the ext namespace to make it closer to the upstream? This is mostly a search and replace exercise but there are a few thousand hits.
@pcaspers could you opine please?
@eltoder Yes this is already on our radar. I expect this to be done in the next release.
We did not manage to get this done for the 10th release, unfortunately. We will keep it on our roadmap for the next one (end of September) . Regards, Roland
Here is, what I had to do to achieve this. Perl or sed can be used to do this with a single command:
- Replace
boost::(make_shared|shared_ptr|optional|dynamic_pointer_cast|none|static_pointer_cast)
withQuantLib::ext::\1
throughout. - Subsequently replace
ext::none
withext::nullopt
.
If only figuring out the fairSpreadClean()
added to the fork were as easy :-/