Commit addb19d3 authored by Davis King's avatar Davis King

Initialized exception_ptr since some systems, incorrectly, don't initialize it automatically.

parent 8d764230
...@@ -1059,7 +1059,7 @@ namespace dlib ...@@ -1059,7 +1059,7 @@ namespace dlib
long lr_schedule_pos; long lr_schedule_pos;
unsigned long gradient_check_budget; unsigned long gradient_check_budget;
std::exception_ptr eptr; std::exception_ptr eptr = nullptr;
mutable std::mutex eptr_mutex; mutable std::mutex eptr_mutex;
void propagate_exception() const void propagate_exception() const
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment