default arguments in class member template functions

Discussion in 'C++' started by Hicham Mouline, Sep 15, 2009.

  1. 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,
    Hicham Mouline, Sep 15, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    2,088
    Gianni Mariani
    Jun 8, 2007
  2. Hamish
    Replies:
    3
    Views:
    555
    Alf P. Steinbach
    Jan 25, 2008
  3. Hicham Mouline
    Replies:
    0
    Views:
    424
    Hicham Mouline
    Apr 23, 2009
  4. Hicham Mouline
    Replies:
    1
    Views:
    406
    Michael DOUBEZ
    Apr 24, 2009
  5. Hicham Mouline
    Replies:
    3
    Views:
    388
    Hicham Mouline
    Sep 16, 2009
Loading...

Share This Page