Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
thallium
Commits
4aa16ad1
Commit
4aa16ad1
authored
Sep 19, 2018
by
Matthieu Dorier
Browse files
corrected another bug with stringifying endpoint
parent
ccd866d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/endpoint.cpp
View file @
4aa16ad1
...
...
@@ -3,6 +3,7 @@
*
* See COPYRIGHT in top-level directory.
*/
#include <vector>
#include <thallium/endpoint.hpp>
#include <thallium/engine.hpp>
#include <thallium/margo_exception.hpp>
...
...
@@ -72,11 +73,11 @@ endpoint::operator std::string() const {
hg_return_t
ret
=
margo_addr_to_string
(
m_engine
->
m_mid
,
NULL
,
&
size
,
m_addr
);
MARGO_ASSERT
(
ret
,
margo_addr_to_string
);
std
::
string
result
(
size
,
' '
);
std
::
vector
<
char
>
result
(
size
);
ret
=
margo_addr_to_string
(
m_engine
->
m_mid
,
&
result
[
0
],
&
size
,
m_addr
);
MARGO_ASSERT
(
ret
,
margo_addr_to_string
);
return
result
;
return
std
::
string
(
result
.
data
())
;
}
}
...
...
Write
Preview
Markdown
is supported
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