int main() { std::cout << "==== start ====" << std::endl; Facade f = Facade(); f.DoDomainLogic(); std::cout << "==== end ====" << std::endl; }
fsys::file::Facade fsys::file::open(const std::wstring& path, const fsys::file::OpenOptions& options) { auto tmp = std::make_unique<ImplFacade>(path, options); return tmp->is_valid() ? Facade(std::move(tmp)) : Facade(); }