From addb19d3365c3a7f6e50deb8496203dcd57f33c0 Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 3 Jan 2017 06:35:32 -0500 Subject: [PATCH] Initialized exception_ptr since some systems, incorrectly, don't initialize it automatically. --- dlib/dnn/trainer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/dnn/trainer.h b/dlib/dnn/trainer.h index d37c6a3f4..ff1a3682a 100644 --- a/dlib/dnn/trainer.h +++ b/dlib/dnn/trainer.h @@ -1059,7 +1059,7 @@ namespace dlib long lr_schedule_pos; unsigned long gradient_check_budget; - std::exception_ptr eptr; + std::exception_ptr eptr = nullptr; mutable std::mutex eptr_mutex; void propagate_exception() const {