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
6288fd5
..
de93572
100644
(file)
--- a/
src/mc/remote/RemotePtr.hpp
+++ b/
src/mc/remote/RemotePtr.hpp
@@
-1,5
+1,4
@@
-/* Copyright (c) 2008-2018. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2008-2019. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-7,12
+6,7
@@
#ifndef SIMGRID_MC_REMOTE_PTR_HPP
#define SIMGRID_MC_REMOTE_PTR_HPP
#ifndef SIMGRID_MC_REMOTE_PTR_HPP
#define SIMGRID_MC_REMOTE_PTR_HPP
-#include <cstddef>
-#include <cstdint>
-#include <cstring>
-
-#include <stdexcept>
-#include <type_traits>
+#include "src/simix/smx_private.hpp"
namespace simgrid {
namespace mc {
namespace simgrid {
namespace mc {
@@
-55,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)); }