Skip to content
Snippets Groups Projects
csandbox.cc 667 B
Newer Older
  • Learn to ignore specific revisions
  • #include "vereign/kvstore/sqlite_storage.hh"
    
    Daniel Lyubomirov's avatar
    Daniel Lyubomirov committed
    #include <boost/core/ignore_unused.hpp>
    #include <iostream>
    #include <boost/filesystem.hpp>
    
    #include <vereign/core/string.hh>
    
    #include <vereign/bytes/view.hh>
    #include <vereign/bytes/view_dump.hh>
    
    #include <vereign/fs/util.hh>
    #include <vereign/fs/path.hh>
    #include <vereign/fs/operations.hh>
    
    
    using namespace vereign;
    
    Daniel Lyubomirov's avatar
    Daniel Lyubomirov committed
    
    auto main(int argc, char** argv) -> int {
      boost::ignore_unused(argc);
      boost::ignore_unused(argv);
    
    
      auto dir = fs::TempDir("trtr_");
      auto rm = fs::RemoveAllGuard{dir};
      std::cout << dir << std::endl;
    
      std::ofstream f{fs::path::Join(dir, "hello")};
      f << "ops";
      f.close();
    
    
      return 0;