diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-21 17:19:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-21 17:19:04 +0000 |
commit | 310edf444908b09ea6d00c03baceb7925f3bb7a2 (patch) | |
tree | 7064577c7fa7a851e2e930beb606ea8237b0bbd2 /ml/dlib/dlib/any/any_function_impl2.h | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-310edf444908b09ea6d00c03baceb7925f3bb7a2.tar.xz netdata-310edf444908b09ea6d00c03baceb7925f3bb7a2.zip |
Merging upstream version 1.45.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ml/dlib/dlib/any/any_function_impl2.h')
-rw-r--r-- | ml/dlib/dlib/any/any_function_impl2.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/ml/dlib/dlib/any/any_function_impl2.h b/ml/dlib/dlib/any/any_function_impl2.h deleted file mode 100644 index e1801ddc1..000000000 --- a/ml/dlib/dlib/any/any_function_impl2.h +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (C) 2011 Davis E. King (davis@dlib.net) -// License: Boost Software License See LICENSE.txt for the full license. -#ifndef DLIB_ANY_FUNCTION_ARG_LIST -#error "You aren't supposed to directly #include this file. #include <dlib/any.h> instead." -#endif - -#ifdef DLIB_ANY_FUNCTION_ARG_LIST - -// The case where function_type has a non-void return type - template <typename function_type, typename Enabled> - class any_function<function_type, Enabled, DLIB_ANY_FUNCTION_NUM_ARGS> - { -#define DLIB_ANY_FUNCTION_RETURN return -#include "any_function_impl.h" -#undef DLIB_ANY_FUNCTION_RETURN - - private: - // You get a compiler error about this function being private if you try to assign - // or copy between any_functions with different types. You must only copy between - // any_functions that represent functions with the same signature. - template <typename T, typename U> any_function(const any_function<T,U>&); - }; - -// The case where function_type has a void return type - template <typename function_type> - class any_function<function_type, typename sig_traits<function_type>::type, DLIB_ANY_FUNCTION_NUM_ARGS> - { -#define DLIB_ANY_FUNCTION_RETURN -#include "any_function_impl.h" -#undef DLIB_ANY_FUNCTION_RETURN - - private: - // You get a compiler error about this function being private if you try to assign - // or copy between any_functions with different types. You must only copy between - // any_functions that represent functions with the same signature. - template <typename T> any_function(const any_function<T>&); - }; - -#undef DLIB_ANY_FUNCTION_ARG_LIST -#undef DLIB_ANY_FUNCTION_ARGS -#undef DLIB_ANY_FUNCTION_NUM_ARGS - -#endif // DLIB_ANY_FUNCTION_ARG_LIST - |