* You are not expected to inherit from it. Instead of you use should
* @ref XBT_THROW an exception which will throw a subclass of your original
* exception with those additional features.
- *
+ *
* However, you can try `dynamic_cast` an exception to this type in order to
* get contextual information about the exception.
*/
class WithContext : public E, public WithContextException
{
public:
-
- static_assert(!std::is_base_of<WithContextException,E>::value,
- "Trying to appli WithContext twice");
+ static_assert(not std::is_base_of<WithContextException, E>::value, "Trying to appli WithContext twice");
WithContext(E exception) :
E(std::move(exception)) {}