Open

Description
So I'm trying to return my app from a function instead of doing everything in main for testing purposes. But when I return the CLI::App
instance from the function, I get an error.
Steps to reproduce:
#include <CLI/CLI.hpp>
CLI::App get_app() {
CLI::App app { "CLI App"};
return app;
}
int main(int argc, char **argv) {
auto app = get_app();
CLI11_PARSE(app, argc, argv);
}
I couldn't find the copy constructor defined anywhere, is that the problem? I know when a destructor is custom-defined, the default copy constructor is not included. Please help!
Metadata
Metadata
Assignees
Labels
No labels