H
Hendrik Schober
Hi,
suppose we have
template< typename T >
struct X;
and some specializations:
template<>
struct X<A> {};
template<>
struct X<B> {};
template<>
struct X<B> {};
Given a type 'U', is there a way to find out whether the
definition 'X<U>' exists? (The result should be a compile-
time constant, so that it can be used for specializing
other templates.)
Schobi
--
(e-mail address removed) is never read
I'm HSchober at gmx dot de
"A patched buffer overflow doesn't mean that there's one less way attackers
can get into your system; it means that your design process was so lousy
that it permitted buffer overflows, and there are probably thousands more
lurking in your code."
Bruce Schneier
suppose we have
template< typename T >
struct X;
and some specializations:
template<>
struct X<A> {};
template<>
struct X<B> {};
template<>
struct X<B> {};
Given a type 'U', is there a way to find out whether the
definition 'X<U>' exists? (The result should be a compile-
time constant, so that it can be used for specializing
other templates.)
Schobi
--
(e-mail address removed) is never read
I'm HSchober at gmx dot de
"A patched buffer overflow doesn't mean that there's one less way attackers
can get into your system; it means that your design process was so lousy
that it permitted buffer overflows, and there are probably thousands more
lurking in your code."
Bruce Schneier