E
Eric
See question in main function below...TIA.
struct A {};
struct B: public A {};
#include <boost/shared_ptr.hpp>
#include <set>
typedef boost::shared_ptr<A> AP;
typedef std::set<AP> AS;
typedef boost::shared_ptr<B> BP;
typedef std::set<BP> BS;
void F (AS& as) {
//...do some processing on as
}
int main (void) {
BS bs;
//...fill as with some pointers...
// How do you pass bs to F?
return (0);
}
struct A {};
struct B: public A {};
#include <boost/shared_ptr.hpp>
#include <set>
typedef boost::shared_ptr<A> AP;
typedef std::set<AP> AS;
typedef boost::shared_ptr<B> BP;
typedef std::set<BP> BS;
void F (AS& as) {
//...do some processing on as
}
int main (void) {
BS bs;
//...fill as with some pointers...
// How do you pass bs to F?
return (0);
}