9 Apr
2009
9 Apr
'09
2:39 p.m.
AMDG Hicham Mouline wrote:
template<typename C> class X { public:
template
void Get (int, typename boost::call_traits<Interp>::const_reference= Interp(), typename boost::call_traits<Extrap>::const_reference= Extrap() ) const; }; <snip>
class P { public: static const size_t defaultInterpolationOrder = 2; // quadratic polynomial
Polynomial1D(size_t order =defaultInterpolationOrder) : mOrder(order) {}
This is not legal. The name of the constructor should be the same as the name of the class.
Private:
Should be private? How this code even compiles is beyond me.
size_t mOrder; };
1 example of call is
x.template GetSpot
( 5 );
GetSpot? I only see Get. In Christ, Steven Watanabe