Boost logo

Boost :

Subject: [boost] [shared_ptr] Detect shared_ptr argument at compile time
From: Ralf Globisch (rglobisch_at_[hidden])
Date: 2010-07-27 06:30:39

I'm not sure if this is the correct mailing list for this question:

Is there a way to determine if a template parameters is of type
boost::shared_ptr at compile time?

I would like to do something like:

template<class A>
void doSomething( const A& a)
   // if "a" is of type boost::shared_ptr<SomeType>
   // else

Is this possible at all?


Boost list run by bdawes at, gregod at, cpdaniel at, john at