fork download
  1. #include <list>
  2. #include <string>
  3.  
  4. namespace Filesystem
  5. {
  6. extern std::list<std::string> g_SearchPaths;
  7. extern void AddSource(std::string Path);
  8. }
  9.  
  10. namespace Filesystem
  11. {
  12. std::list<std::string> g_SearchPaths;
  13.  
  14. void AddSource(std::string Path)
  15. {
  16. g_SearchPaths.push_back(Path); // Löst die Zugriffsverletzung aus
  17. }
  18. }
  19.  
  20. int main()
  21. {
  22. Filesystem::AddSource("foo");
  23. return 0;
  24. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty