Topic: why can't builtin types be 'full blown' classes
Author: marc@offline.be (Marc Duponcheel)
Date: Sat, 16 Apr 94 23:42:36 GMT Raw View
Borland and gcc don't accept the following:
class Int : public int {};
this makes the following use of templates impossible for builtin types:
template <class T> class Foo : public T {};
In general, I find situations where an instantiation of a template fails
simply because the actual class is a builtin type rather annoying.
Isn't it possible to 'generate' all necessarry ctors, dtors and operators
for builtin types ?
-- marc.
################################################################################
email preferred address marc@offline.be [= me@home]
aka marc@offline.UUCP ub4b!offline!marc offline!marc
if [me@home] fails mdu@abacus.be [= me@brussels.work]
or mdp@cimad.be [= me@antwerp.work]
or (not preferred) mduponch@Belgium.EU.net [= me@EUnet.home]
or (not preferred) mduponch@ub4b.buug.be [= me@EUnet.home]
fido 2:292/603.26 Marc.Duponcheel@p26.f603.n292.z2.FidoNet.Org [= me@home]
bix mduponcheel mduponcheel@BIX.com [= me@home]
(to email me FROM CompuServe use '>INTERNET:marc@offline.be')
################################################################################