 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
sambell Guest
|
Posted: Thu Feb 23, 2006 1:06 am Post subject: template instantiation with virtual functions |
|
|
I am seeking help with compiling code from Andrei Alexandrescu's
Generic<Programming>: Typelists and Applications.
http://www.cuj.com/documents/s=7986/cujcexp2002alexandr/alexandr.htm
The VC7.1 compiler error is:
error C2253: 'AdHocVisitor<tlist>::Visit' : pure specifier only applies
to virtual function - specifier ignored
with
[
tlist=typelist<VectorGraphics,typelist<Bitmap,null_typelist>>
]
I am new to templates and metaprogramming. If there is a simple
explanation I can explore I would be grateful. I can supply more
details if necessary.
Thanks
David
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ] |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|