T
Tim H
help?!?
#include <boost/shared_ptr.hpp>
class pp_dirent {};
class pp_scope: public pp_dirent {};
int main() {
boost::shared_ptr<pp_dirent> p1(new pp_scope());
boost::shared_ptr<pp_scope> p2 =
static_pointer_cast<pp_scope>(p1);
return 0;
}
g++ test.cpp -o test
test.cpp: In function int main():
test.cpp:8: error: static_pointer_cast was not declared in this scope
test.cpp:8: error: expected primary-expression before > token
What?
#include <boost/shared_ptr.hpp>
class pp_dirent {};
class pp_scope: public pp_dirent {};
int main() {
boost::shared_ptr<pp_dirent> p1(new pp_scope());
boost::shared_ptr<pp_scope> p2 =
static_pointer_cast<pp_scope>(p1);
return 0;
}
g++ test.cpp -o test
test.cpp: In function int main():
test.cpp:8: error: static_pointer_cast was not declared in this scope
test.cpp:8: error: expected primary-expression before > token
What?