diff --git a/dlib/test/invoke.cpp b/dlib/test/invoke.cpp index a23b6dd15..02c36f030 100644 --- a/dlib/test/invoke.cpp +++ b/dlib/test/invoke.cpp @@ -323,8 +323,8 @@ namespace static_assert(dlib::invoke(multiply_ints, 2, 5) == 10, "this should be constexpr"); static_assert(dlib::invoke_r(multiply_ints, 2, 5) == 10, "this should be constexpr"); constexpr constexpr_object constexpr_obj; - static_assert(dlib::invoke(&constexpr_object::multiply_ints, constexpr_obj, 2, 5) == 10); - static_assert(dlib::invoke_r(&constexpr_object::multiply_ints, constexpr_obj, 2, 5) == 10); + static_assert(dlib::invoke(&constexpr_object::multiply_ints, constexpr_obj, 2, 5) == 10, "this should be constexpr"); + static_assert(dlib::invoke_r(&constexpr_object::multiply_ints, constexpr_obj, 2, 5) == 10, "this should be constexpr"); } // ----------------------------------------------------------------------------------------