[PPL-devel] [GIT] ppl/ppl(master): Fixed typo.
Abramo Bagnara
abramo.bagnara at gmail.com
Sat Jul 11 18:25:14 CEST 2009
Module: ppl/ppl
Branch: master
Commit: 6fd8437f2e56f1f162c6367fef0c57b3f4bc846d
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=6fd8437f2e56f1f162c6367fef0c57b3f4bc846d
Author: Abramo Bagnara <abramo.bagnara at gmail.com>
Date: Sat Jul 11 18:25:10 2009 +0200
Fixed typo.
---
Watchdog/src/Weightwatch.inlines.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Watchdog/src/Weightwatch.inlines.hh b/Watchdog/src/Weightwatch.inlines.hh
index b0816c8..43e3294 100644
--- a/Watchdog/src/Weightwatch.inlines.hh
+++ b/Watchdog/src/Weightwatch.inlines.hh
@@ -34,7 +34,7 @@ template <typename Flag_Base, typename Flag>
Weightwatch<Threshold, Get, Compare>::Weightwatch(const Threshold& threshold, const Flag_Base* volatile& holder, Flag& flag)
: expired(false),
handler(*new Handler_Flag<Flag_Base, Flag>(holder, flag)) {
- if (!Compare()(threshold, Get()()))
+ if (!Compare()(Get()(), threshold))
throw std::invalid_argument("Weightwatch constructor called with a"
" threshold already reached");
pending_position = add_threshold(threshold, handler, expired);
@@ -44,7 +44,7 @@ template <typename Threshold, typename Get, typename Compare>
inline
Weightwatch<Threshold, Get, Compare>::Weightwatch(const Threshold& threshold, void (*function)())
: expired(false), handler(*new Handler_Function(function)) {
- if (!Compare()(threshold, Get()()))
+ if (!Compare()(Get()(), threshold))
throw std::invalid_argument("Weightwatch constructor called with a"
" threshold already reached");
pending_position = add_threshold(threshold, handler, expired);
More information about the PPL-devel
mailing list