#include <iostream>
class Foo
{
};
class Bar
{
public:
void my_method(const vector<const Foo*>& param)
{
std::cout << "Hi" << std::endl;
}
};
int main( int argc, char **argv )
{
vector<Foo*> my_vector;
vector<const Foo*> my_const_vector;
Bar bar;
bar.my_method( my_vector );
bar.my_method( my_const_vector );
return 0;
}