Commit 4d040a21 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Build exceptions from C string (char*)

parent fb78a24c
......@@ -64,7 +64,7 @@ namespace hpp
struct conditional_insertion_operator<exception, ThrowException> {
typedef exception type;
static inline type run(ExceptionFactory<exception>& be, const ThrowException&) { return exception(be.ss.str()); }
static inline type run(ExceptionFactory<exception>& be, const ThrowException&) { return exception(be.ss.str().c_str()); }
};
}
/// \endcond
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment