--- Comment #3 from debian dot templier at free dot fr 2009-12-05 10:58
---
missing in analyse of possible constructor :
template < typename X , typename XT2 = T , typename X2 = typename XT2 :: X >
SMART(SMART & value) : data(value.operator T* ()) {} ;
with X=A XT2=T X2=T
cc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian dot templier at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42297
cc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian dot templier at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42296
--- 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_
--- 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 publ
--- 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 <
--- 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 no
--- Comment #1 from debian dot templier at free dot fr 2009-12-04 06:03
---
template < typename X , typename X2 = typename X :: T > X * CastUp()
{return(dynamic_cast(data)); } ;
--
debian dot templier at free dot fr changed:
What|R
derived template deafult argument
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian dot templier at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42272