Re: [boost] [modularization] Dependency to Boost.Exceptionunavoidable?
What about combining throw_exception.hpp and exception.hpp and move that header to config, since it won't depend on anything else and only really does configuration anyways? Note, if you don't like config as a choice, the new version of detail which only depends on config sounds nice as well.
________________________________
From: Emil Dotchevski
Sent: 11/3/2013 12:29 PM
To: boost@lists.boost.org
Subject: Re: [boost] [modularization] Dependency to Boost.Exceptionunavoidable?
On Sat, Nov 2, 2013 at 5:19 PM, Niall Douglas
On 1 Nov 2013 at 16:01, Emil Dotchevski wrote:
1. If BOOST_NO_EXCEPTIONS is defined, libraries should not throw. One option to implement that behavior is to pass exception objects (of the usual documented library-defined types) to boost::throw_exception.
I wonder how useful supporting exceptions disabled is in recent years?
I agree that many Boost libraries are impractical with exception handling disabled, but there is no harm done in supporting BOOST_NO_EXCEPTIONS via boost::throw_exception, since its specification does not allow it to return. -- Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
On Mon, Nov 4, 2013 at 12:53 AM, Ahmed Charles
What about combining throw_exception.hpp and exception.hpp and move that header to config, since it won't depend on anything else and only really does configuration anyways? Note, if you don't like config as a choice, the new version of detail which only depends on config sounds nice as well.
Logically, it makes sense to keep the two headers but yes, I agree that config is the right module for both boost/throw_exception.hpp and boost/exception/exception.hpp. At any rate this won't introduce any dependencies because boost/throw_exception.hpp depends only on config. -- Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode
Le 04/11/13 20:22, Emil Dotchevski a écrit :
What about combining throw_exception.hpp and exception.hpp and move that header to config, since it won't depend on anything else and only really does configuration anyways? Note, if you don't like config as a choice, the new version of detail which only depends on config sounds nice as well. Logically, it makes sense to keep the two headers but yes, I agree
On Mon, Nov 4, 2013 at 12:53 AM, Ahmed Charles
wrote: that config is the right module for both boost/throw_exception.hpp and boost/exception/exception.hpp. At any rate this won't introduce any dependencies because boost/throw_exception.hpp depends only on config.
Even if boost/exception/exception.hpp doesn't includes boost/shared_ptr.h doesn't it depends on Boost.SmartPtr? Best, Vicente
On Tue, Nov 5, 2013 at 2:01 PM, Vicente J. Botet Escriba
Le 04/11/13 20:22, Emil Dotchevski a écrit :
On Mon, Nov 4, 2013 at 12:53 AM, Ahmed Charles
wrote: What about combining throw_exception.hpp and exception.hpp and move that header to config, since it won't depend on anything else and only really does configuration anyways? Note, if you don't like config as a choice, the new version of detail which only depends on config sounds nice as well.
Logically, it makes sense to keep the two headers but yes, I agree that config is the right module for both boost/throw_exception.hpp and boost/exception/exception.hpp. At any rate this won't introduce any dependencies because boost/throw_exception.hpp depends only on config.
Even if boost/exception/exception.hpp doesn't includes boost/shared_ptr.h doesn't it depends on Boost.SmartPtr?
Nope, boost/exception/exception.hpp does not depend on anything at all in any way whatsoever. :) -- Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode
participants (3)
-
Ahmed Charles
-
Emil Dotchevski
-
Vicente J. Botet Escriba