Detect specialized template function?
Slightly OT, but I was hoping someone here might know the magic incantation
(which may involve a Boost library).
Given a template class such as
template <class T>
struct S
{
void f();
void g() { T t(h()); cb(t) }
T & h();
boost::function1
Hi, Daniel. Daniel wrote:
For example, the mere existance of the specialization template <> void S<int>::g() { ... } should trigger special logic in S<int>::f().
Couldn't you explain what "trigger special logic" means? Specializing template for concrete type we trigger special logic, don't we? Best, Andrew -- View this message in context: http://old.nabble.com/Detect-specialized-template-function--tp27363813p27371... Sent from the Boost - Users mailing list archive at Nabble.com.
participants (2)
-
Andrew Chinkoff
-
dherring@ll.mit.edu