implementing PiecewiseYieldCurve via MSVC6

Posted by sercan atalik-2 on
URL: http://quantlib.414.s1.nabble.com/strange-bond-behavior-tp4348p4349.html

Hi all,
Are there any known bugs with MSVC6 when implementing PiecewiseYieldCurve? I
can not compile my basic sample code, can you provide an example? I think a
have a trouble with function template arguments.  

Thanks a lot.




template <class T, class I>
void testYieldCurve (const T&, const I& interpolator) {
...
..
.

boost::shared_ptr<YieldTermStructure> termStructure;
termStructure = boost::shared_ptr<YieldTermStructure>(
new PiecewiseYieldCurve<T,I>(Settlement,bondHelpers,
Actual360(), 1.0e-12, LogLinear()));

Handle<YieldTermStructure> ts;
ts.linkTo(termStructure);

.
..
...

}


int main(int, char* [])
{
 testYieldCurve(ZeroYield(), LogLinear());
 return 0;
}


C:\works\SXL\SXLL\QL_TEST\src\main.cpp(142) : error C2061: syntax error :
identifier 'PiecewiseYieldCurve'
        C:\works\SXL\SXLL\QL_TEST\src\main.cpp(166) : see reference to
function template instantiation 'void __cdecl testYieldCurve (const struct
QuantLib::ZeroYield &,const class QuantLib::LogLinear &)' being compiled