diff --git a/include/hc/hc.hpp b/include/hc/hc.hpp index d58a4423060..d94dd327a41 100644 --- a/include/hc/hc.hpp +++ b/include/hc/hc.hpp @@ -1208,7 +1208,9 @@ namespace hc std::pair& accelerator_view:: pending_tasks_for_default_av_() const { - if (!accelerator_) throw "WTF?!?!?!?!"; + if (!accelerator_) { + throw std::logic_error{"Invariants of class accelerator broken."}; + } using ConcurrentFuture_ = std::pair;