default arguments in class member template functions

H

Hicham Mouline

Hello,
I am debugging (vs2008) the following code:
http://codepad.org/zy3WFbe7

From user code, I call:

const Curve1D<Trait> curve(/* ctor arguments*/);
double y = curve.Get<Something, Linear1D>( x );

when I get in the implementation of the Get() member function, the e that is
supposed to be constructed
with Linear1D() default ctor, isn't properly set.

introspecting e shows that
mfPrimebegin=NaN
mfPrimeend= 7.737463760456e-317#DEN
mfboundary= 3.6492352064455326e-307while they should all be NaNThis is in
debug.Is there a problem defining the Get function outside of its
encapsulating class?especially that it is a template member
function?regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top