default argument and call trait const_reference

Hello,
I have the following template
template<typename C>
class X
{
public:
template ( 5 );
when I debug this P's ctor is never called and mOrder is never 2
Is my GetSpot method valid, the construction of the temporary should be
bound to the const ref
const P&
and the temporary should have finished being constructed before we go inside
the Get() method.
Is there an issue with the definition of Get being out of classe?
Am I calling call_traits<P>::const_reference in a wrong way?
VS2005SP1
Regards,
participants (2)
-
Hicham Mouline
-
Steven Watanabe