Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include "Directory.h"
  2. std::shared_ptr<Directory> Directory::getRoot() {
  3.     if (instance == nullptr){
  4.         std::shared_ptr<Directory> instance(new Directory());
  5.     }
  6.     return instance;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement