Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-util
Commits
4d040a21
Commit
4d040a21
authored
Aug 22, 2016
by
Joseph Mirabel
Committed by
Joseph Mirabel
Aug 22, 2016
Browse files
Build exceptions from C string (char*)
parent
fb78a24c
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/util/exception-factory.hh
View file @
4d040a21
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment