Commit f16991d3 authored by Davis E. King's avatar Davis E. King Committed by GitHub

Remove initializer lists support for Apple/Clang (libstdc++ version used does…

Remove initializer lists support for Apple/Clang (libstdc++ version used does not include std::initializer_list) (#334)
parents 23785d53 06a552ee
...@@ -47,6 +47,10 @@ ...@@ -47,6 +47,10 @@
# define DLIB_HAS_INITIALIZER_LISTS # define DLIB_HAS_INITIALIZER_LISTS
#endif #endif
#if defined(__APPLE__) && defined(__GNUC_LIBSTD__) && ((__GNUC_LIBSTD__-0) * 100 + __GNUC_LIBSTD_MINOR__-0 <= 402)
// Apple has not updated libstdc++ in some time and anything under 4.02 does not have <initializer_list> for sure.
# undef DLIB_HAS_INITIALIZER_LISTS
#endif
// figure out if the compiler has static_assert. // figure out if the compiler has static_assert.
#if defined(__clang__) #if defined(__clang__)
......
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