#include <manifest_parser/utils/logging.h>
#include <iostream>
+#include <memory>
#include <TTraceWrapper.h>
#include "tpk/tpk_app_query_interface.h"
namespace ci = common_installer;
-#if __cplusplus < 201300L
-namespace {
-
-template<typename T, typename... Args>
-std::unique_ptr<T> make_unique(Args&&... args) {
- return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
-}
-
-} // namespace
-#endif
-
int main(const int argc, char* argv[]) {
TTRACE(TTRACE_TAG_APP, "TPK_BACKEND");
return -1;
}
-#if __cplusplus >= 201300L
- using std;
-#endif
ci::InstallerRunner runner(
- make_unique<tpk::TpkInstallerFactory>(), pkgmgr);
+ std::make_unique<tpk::TpkInstallerFactory>(), pkgmgr);
ci::AppInstaller::Result result = runner.Run();
return (result == ci::AppInstaller::Result::OK) ? 0 : 1;
} catch(...) {