diff --git a/Number_types/include/CGAL/NT_wrapper.h b/Number_types/include/CGAL/NT_wrapper.h index ac9794f000b..f0f6f108001 100644 --- a/Number_types/include/CGAL/NT_wrapper.h +++ b/Number_types/include/CGAL/NT_wrapper.h @@ -35,22 +35,22 @@ class NT_wrapper { public: inline static std::function f; - NT_wrapper() : value(0) { call_f(); } - NT_wrapper(const NT& val) : value(val) { call_f();} - NT_wrapper(NT&& val) : value(std::move(val)) { call_f(); } - NT_wrapper(int val) : value(val) { call_f(); } + NT_wrapper() : value(0) { call_f(std::source_location::current()); } + NT_wrapper(const NT& val) : value(val) { call_f(std::source_location::current());} + NT_wrapper(NT&& val) : value(std::move(val)) { call_f(std::source_location::current()); } + NT_wrapper(int val) : value(val) { call_f(std::source_location::current()); } template >> - NT_wrapper(const NT_wrapper& other) : value(other.get_value()) { call_f(); } + NT_wrapper(const NT_wrapper& other) : value(other.get_value()) { call_f(std::source_location::current()); } - NT_wrapper(const NT_wrapper& other) : value(other.value) { call_f(); } - NT_wrapper(NT_wrapper&& other) : value(std::move(other.value)) { call_f(); } - ~NT_wrapper() { call_f(); } + NT_wrapper(const NT_wrapper& other) : value(other.value) { call_f(std::source_location::current()); } + NT_wrapper(NT_wrapper&& other) : value(std::move(other.value)) { call_f(std::source_location::current()); } + ~NT_wrapper() { call_f(std::source_location::current()); } NT_wrapper& operator=(const NT_wrapper& other) { if (this != &other) { value = other.value; - call_f(); + call_f(std::source_location::current()); } return *this; } @@ -58,7 +58,7 @@ public: NT_wrapper& operator=(NT_wrapper&& other) { if (this != &other) { value = std::move(other.value); - call_f(); + call_f(std::source_location::current()); } return *this; }