|
From: Luigi B. <lui...@gm...> - 2019-07-03 12:51:33
|
Hello,
__DOXYGEN__ is only defined when we're running Doxygen to generate the
documentation that goes at <https://www.quantlib.org/reference/> (for some
reason, it would emit a warning otherwise). When we actually compile the
code, the method is always included.
Luigi
On Tue, Jul 2, 2019 at 8:12 PM Amine Ifri <ami...@gm...> wrote:
> Hi team,
>
> I was looking through source code of QL and came through this piece of
> code which I don’t understand:
>
> #ifndef __DOXYGEN__
> template <class Curve>
> Real BootstrapError<Curve>::operator()(Real guess) const {
> Traits::updateGuess(curve_->data_, guess, segment_);
> curve_->interpolation_.update();
> return helper_->quoteError();
> }
> #endif
>
> I was wondering what __DOXYGEN has to do with whether this part of the
> class is compiled or not? Isn’t this piece of code a major part of the
> bootstrapping routine used by QuantLib?
>
> Thanks as usual :)
> Amine
> _______________________________________________
> QuantLib-users mailing list
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>
|