--- Comment #10 from paolo dot carlini at oracle dot com 2009-12-05 19:32
---
*** Bug 42296 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42272
--- Comment #9 from paolo dot carlini at oracle dot com 2009-12-05 09:45
---
*** Bug 42296 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42272
--- Comment #8 from paolo dot carlini at oracle dot com 2009-12-04 17:44
---
.
--
paolo dot carlini at oracle dot com changed:
What|Removed |Added
Status|UNC
--- Comment #7 from debian dot templier at free dot fr 2009-12-04 17:44
---
template < typename X , typename XT2 =T , typename X2 = typename XT2 ::
X > SMART(SMART & value) : data(value.CastUp) {} ;
The code to do the constructor
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42
--- Comment #6 from debian dot templier at free dot fr 2009-12-04 17:39
---
i want a constructor on template class SMART with reference parameter on
SMART & value with the constraint of T on SMART instanciation is
T is unherited of X
class A
{
} ;
class B : virtual public A
{
} ;
w
--- Comment #5 from debian dot templier at free dot fr 2009-12-04 17:33
---
the pb is on line :
template < typename X , typename XT2 =T , typename X2 = typename XT2 ::
X > SMART(SMART & value) : data(value.CastUp) {} ;
if i replace the line by
> template < typename XT2 = T , typenam
--- Comment #4 from redi at gcc dot gnu dot org 2009-12-04 17:31 ---
(In reply to comment #3)
> the pb is on line :
> template < typename X , typename XT2 =T , typename X2 = typename XT2 ::
> X > SMART(SMART & value) : data(value.CastUp) {} ;
I don't understand, that line did not appe
--- Comment #3 from debian dot templier at free dot fr 2009-12-04 17:12
---
Subject: Re: derived template default argument
redi at gcc dot gnu dot org wrote:
> --- Comment #2 from redi at gcc dot gnu dot org 2009-12-04 09:48 ---
> SMART a();
>
> This does not declare an objec
--- Comment #2 from redi at gcc dot gnu dot org 2009-12-04 09:48 ---
SMART a();
This does not declare an object of type SMART, it declares a function called
'a' which returns SMART
You need to change that to:
SMART a;
or
SMART a = SMART();
--
redi at gcc dot gnu dot org changed: