Skip to content
Snippets Groups Projects
Commit ff76c4b5 authored by Christian Engwer's avatar Christian Engwer
Browse files

avoid broken array implementations

[[Imported from SVN: r6183]]
parent 06038914
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,14 @@ AC_DEFUN([DUNE_TR1_HEADERS], [
[],
[enable_tr_headers=yes])
AS_IF([test "x$enable_tr1_headers" != "xno"],
[AC_CHECK_HEADERS([type_traits tr1/type_traits array tr1/array tuple tr1/tuple])])
[AC_CHECK_HEADERS([type_traits tr1/type_traits tuple tr1/tuple])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[array]],
[[std::array<int,2> a; a.fill(9);]])],
[HAVE_ARRAY=yes], [HAVE_ARRAY=no])
AS_IF([test "x$HAVE_ARRAY" != "xno"],
[AC_DEFINE([HAVE_ARRAY], 1, [Define to 1 if the <array> C++0x is available and support array::fill])])]
)
AC_LANG_POP([C++])
])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment