diff --git a/science/dlib-cpp/files/patch-dlib_global__optimization_find__max__global.h b/science/dlib-cpp/files/patch-dlib_global__optimization_find__max__global.h new file mode 100644 index 000000000000..5c15321b552f --- /dev/null +++ b/science/dlib-cpp/files/patch-dlib_global__optimization_find__max__global.h @@ -0,0 +1,11 @@ +--- dlib/global_optimization/find_max_global.h.orig 2022-05-08 14:35:36 UTC ++++ dlib/global_optimization/find_max_global.h +@@ -58,7 +58,7 @@ namespace dlib + } + + template +- static auto go(T&& f, const matrix& a) -> decltype(call_function_and_expand_args::template go(std::forward(f),a)) ++ static auto go(T&& f, const matrix& a) -> decltype(call_function_and_expand_args::template go<>(std::forward(f),a)) + { + return call_function_and_expand_args::go(std::forward(f),a); + } diff --git a/science/dlib-cpp/files/patch-dlib_serialize.h b/science/dlib-cpp/files/patch-dlib_serialize.h new file mode 100644 index 000000000000..dffe293a1797 --- /dev/null +++ b/science/dlib-cpp/files/patch-dlib_serialize.h @@ -0,0 +1,10 @@ +--- dlib/serialize.h.orig 2022-05-08 14:35:36 UTC ++++ dlib/serialize.h +@@ -626,6 +626,7 @@ namespace dlib + USE_DEFAULT_INT_SERIALIZATION_FOR(unsigned long) + USE_DEFAULT_INT_SERIALIZATION_FOR(uint64) + USE_DEFAULT_INT_SERIALIZATION_FOR(int64) ++ USE_DEFAULT_INT_SERIALIZATION_FOR(char32_t) + + USE_DEFAULT_BYTE_SERIALIZATION_FOR(char) + USE_DEFAULT_BYTE_SERIALIZATION_FOR(signed char) diff --git a/science/dlib-cpp/files/patch-dlib_unicode_unicode.h b/science/dlib-cpp/files/patch-dlib_unicode_unicode.h new file mode 100644 index 000000000000..2262f242258d --- /dev/null +++ b/science/dlib-cpp/files/patch-dlib_unicode_unicode.h @@ -0,0 +1,11 @@ +--- dlib/unicode/unicode.h.orig 2022-05-08 14:35:36 UTC ++++ dlib/unicode/unicode.h +@@ -16,7 +16,7 @@ namespace dlib + + // ---------------------------------------------------------------------------------------- + +- typedef uint32 unichar; ++ typedef char32_t unichar; + + #if defined(__GNUC__) && __GNUC__ < 4 && __GNUC_MINOR__ < 4 + struct unichar_traits