Posted by
Bojan Nikolic on
Feb 17, 2009; 8:30am
URL: http://quantlib.414.s1.nabble.com/building-under-x64-tp12665p12671.html
Hi Mark,
Mark joshi <
[hidden email]> writes:
> Ok I tried inserting
>
> template <>
> class Null<Size> {
> public:
> Null() {}
> operator Size() const { return Size(QL_NULL_INTEGER); }
> };
>
> into null.hpp and it didn't help.
I guess you tried combining this with:
//! template class providing a null value for a given type.
template <class Type>
class Null;
to check no further compilation errors come up?
> As far as i can tell, the template specialization did nothing.
You should be able to just printing the Null value to check it is not
zero, i.e., std::cout<< Null<Size>();
c
Without a Windows setup this is now all guess work, but :
In termstructure.cpp:
> namespace QuantLib {
>
> TermStructure::TermStructure(const DayCounter& dc)
> : moving_(false),
> updated_(true),
> settlementDays_(Null<Size>()),
> dayCounter_(dc) {}
Here we try to convert Size to Natural as settlementDays_ is declared Natural
> TermStructure::TermStructure(const Date& referenceDate,
> const Calendar& cal,
> const DayCounter& dc)
> : moving_(false), calendar_(cal),
> referenceDate_(referenceDate), updated_(true),
> settlementDays_(Null<Natural>()),
> dayCounter_(dc) {}
Here we use Natural to assign to Natural
>
> // rest of file
I would try replacing the first settlementDays_(Null<Size>()) with
settlementDays_(Null<Natural>())
Best,
Bojan
--
Bojan Nikolic ||
http://www.bnikolic.co.uk------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev