A
andrew_nuss
Hi,
I have an Array<T> template that specializes on T's in my program that
inherit from a base class that I've defined called CtorDtorLess. In
my array template, I check if boost::is_convertible<T*, CtorDtorLess*>
returns true, and then don't use placement new to construct.
I've checked in the debugger and everything works with T's that are
public classes. However, I also have some "inner classes" that are
declared in the private section of another, and then use
Array<MyInnerClass> where appropriate. For some reason, my debugger
does not allow me to step thru code pertaining to MyInnerClass within
Array<T>. Therefore I cannot verify that boost returns true for
is_convertible<T*, CtorDtorLess*> when T is MyInnerClass.
My question is whether the fact that T is an inner class declared in a
private section of another would cause is_convertible<T*,
CtorDtorLess*>::value to return false. My guess is that everything is
fine.
Andy
I have an Array<T> template that specializes on T's in my program that
inherit from a base class that I've defined called CtorDtorLess. In
my array template, I check if boost::is_convertible<T*, CtorDtorLess*>
returns true, and then don't use placement new to construct.
I've checked in the debugger and everything works with T's that are
public classes. However, I also have some "inner classes" that are
declared in the private section of another, and then use
Array<MyInnerClass> where appropriate. For some reason, my debugger
does not allow me to step thru code pertaining to MyInnerClass within
Array<T>. Therefore I cannot verify that boost returns true for
is_convertible<T*, CtorDtorLess*> when T is MyInnerClass.
My question is whether the fact that T is an inner class declared in a
private section of another would cause is_convertible<T*,
CtorDtorLess*>::value to return false. My guess is that everything is
fine.
Andy