|
Boost : |
Subject: Re: [boost] Boost.Application (Pre Alpha) Release 2 available
From: Christof Donat (cd_at_[hidden])
Date: 2012-02-12 06:47:15
Hi,
> This version is based on received comments !
I have only read the tutorial and some of the source. I have not tried to
install it now, but this looks great to me.
Just one minor thing: do I understand it correctly, that app.status() actually
runs the application? I am not sure, I if I really understood your code there.
For me that would be a bit odd. I'd have expected something like app.run(), or
even better app():
int main(int argc, char *argv[])
{
try
{
boost::application::application<myapp> app( argc, argv );
return app();
}
catch(const boost::application::application_error &e)
{
std::cout << e.what() << std::endl;
}
return 1;
};
status() looks like just getting the status, which I would expect to be a
lightweight operation.
A convenience extension could be to have a standard main() implementation:
int main(int argc, char *argv[])
{
return boost::application::run_application<myapp>( argc, argv );
};
Maybe that is an idea for the future.
Also for the future I'd like to think about more sophisticated application
types, like e.g. web applications with various APIs, e.g. CGI, FastCGI, apache
Module, IIS Module, etc. Do you think, that your solution would be extensible
enough for something like that?
Christof
-- okunah gmbh Software nach Maß Werner-Haas-Str. 8 www.okunah.de 86153 Augsburg cd_at_[hidden] Registergericht Augsburg Geschäftsführer Augsburg HRB 21896 Christof Donat UStID: DE 248 815 055
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk