A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a FIXME.
[simgrid.git]
/
src
/
mc
/
remote
/
RemotePtr.hpp
diff --git
a/src/mc/remote/RemotePtr.hpp
b/src/mc/remote/RemotePtr.hpp
index
5d13c42
..
de93572
100644
(file)
--- a/
src/mc/remote/RemotePtr.hpp
+++ b/
src/mc/remote/RemotePtr.hpp
@@
-49,8
+49,7
@@
public:
std::size_t getBufferSize() const { return sizeof(T); }
operator T() const
{
std::size_t getBufferSize() const { return sizeof(T); }
operator T() const
{
-//FIXME: assert turned off because smpi:Request is not seen as "trivial".
-// static_assert(std::is_trivial<T>::value, "Cannot convert non trivial type");
+ static_assert(std::is_trivial<T>::value, "Cannot convert non trivial type");
return buffer;
}
void clear() { std::memset(static_cast<void*>(&buffer), 0, sizeof(T)); }
return buffer;
}
void clear() { std::memset(static_cast<void*>(&buffer), 0, sizeof(T)); }