fork download
  1. #include <iostream>
  2. #include <memory>
  3. using namespace std;
  4.  
  5. template <class T>
  6. class PointCloud {
  7. public:
  8. using Ptr = shared_ptr<T>;
  9. };
  10.  
  11. class A{};
  12.  
  13. int main() {
  14. PointCloud<A>::Ptr p = PointCloud<A>::Ptr(new A);
  15. return 0;
  16. }
Success #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty