
2013/11/1 Peter Dimov
Daniel Pfeifer wrote:
Moving throw_exception.hpp out of this repository eliminates that dependency.
I really don't see how.
Before, you have my_module -> exception. After, you have my_module -> utility -> exception. Not only do you still depend on Exception, you now depend on Utility as well.
When I want to use exceptions and also Boost.Exception, I have my_app -> exception in addition to my_app -> your_library -> utility -> exception. The dependency to exception does not bother me. I have that anyway. When I don't want to use Boost.Exception (BOOST_EXCEPTION_DISABLE), or don't want to use exceptions at all (BOOST_NO_EXCEPTIONS), I have my_app -> your_library -> utility. It should stop there.
Also, that header should not include any headers from Boost.Exception when BOOST_NO_EXCEPTIONS or BOOST_EXCEPTION_DISABLE is defined.
Are you talking about
#include
here?
I was referring to