
5 Nov
2009
5 Nov
'09
5:29 p.m.
AMDG david joeyoung wrote:
please give me some advices.
I get a compile error,when to index on base class member.
the codes are listed below:
struct Foo { int a; };
struct Bar : public Foo { int b; }; <snip> member < Bar,int,&Bar::a> <snip>
Error 1 error C2440: 'specialization' : cannot convert from 'int Foo::* ' to 'int Bar::* ' and the codes are compiled in boost 1.40, vs 2008 sp1
You can use the base class in member:
member