fork download
  1. #include <memory>
  2. #include <iostream>
  3.  
  4. struct MahStruct;
  5.  
  6. struct somestruct {
  7. std::unique_ptr<MahStruct> unique;
  8. };
  9.  
  10. int main() {
  11. somestruct example;
  12. };
  13.  
  14. struct MahStruct {
  15. ~MahStruct() {
  16. std::wcout << L"~MahStruct();";
  17. }
  18. };
Success #stdin #stdout 0s 2824KB
stdin
Standard input is empty
stdout
Standard output is empty