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
[sonar] Declare move constructors with "noexcept".
[simgrid.git]
/
include
/
xbt
/
functional.hpp
diff --git
a/include/xbt/functional.hpp
b/include/xbt/functional.hpp
index
b7e361e
..
145e461
100644
(file)
--- a/
include/xbt/functional.hpp
+++ b/
include/xbt/functional.hpp
@@
-162,7
+162,7
@@
public:
Task(Task const&) = delete;
Task(Task const&) = delete;
- Task(Task&& that)
+ Task(Task&& that)
noexcept
{
if (that.vtable_ && that.vtable_->move)
that.vtable_->move(buffer_, that.buffer_);
{
if (that.vtable_ && that.vtable_->move)
that.vtable_->move(buffer_, that.buffer_);
@@
-172,7
+172,7
@@
public:
that.vtable_ = nullptr;
}
Task& operator=(Task const& that) = delete;
that.vtable_ = nullptr;
}
Task& operator=(Task const& that) = delete;
- Task& operator=(Task&& that)
+ Task& operator=(Task&& that)
noexcept
{
this->clear();
if (that.vtable_ && that.vtable_->move)
{
this->clear();
if (that.vtable_ && that.vtable_->move)