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
Use std::future_error.
[simgrid.git]
/
include
/
xbt
/
future.hpp
diff --git
a/include/xbt/future.hpp
b/include/xbt/future.hpp
index
95ab69d
..
31870ce
100644
(file)
--- a/
include/xbt/future.hpp
+++ b/
include/xbt/future.hpp
@@
-12,6
+12,7
@@
#include <boost/variant.hpp>
#include <exception>
#include <functional>
#include <boost/variant.hpp>
#include <exception>
#include <functional>
+#include <future> // std::future_error
#include <stdexcept>
#include <type_traits>
#include <utility>
#include <stdexcept>
#include <type_traits>
#include <utility>
@@
-66,7
+67,7
@@
public:
break;
}
default:
break;
}
default:
- throw std::
logic_error("Invalid result"
);
+ throw std::
future_error(std::future_errc::no_state
);
}
}
private:
}
}
private: