CXXFLAGS="-Wctor-dtor-privacy -Werror"
AC_TRY_COMPILE(
[
- ],
- [
-template <typename T>
-struct IsInt
-{
- private:
- struct yes_type { char c[1]; };
- struct no_type { char c[2]; };
-
- template <typename T>
- static yes_type check_for_int (const T *);
+ template <typename T>
+ struct IsInt
+ {
+ private:
+ struct yes_type { char c[1]; };
+ struct no_type { char c[2]; };
- static no_type check_for_int (...);
+ static yes_type check_for_int (const int *);
- public:
- static const bool value = (sizeof(check_for_block_matrix
- ((MatrixType*)0))
- ==
- sizeof(yes_type));
-};
+ static no_type check_for_int (...);
-const bool x = IsInt<double>::value;
+ public:
+ static const bool value = (sizeof(check_for_int((T*)0))
+ ==
+ sizeof(yes_type));
+ };
+
+ const bool x = IsInt<double>::value;
+ ],
+ [
],
[
AC_MSG_RESULT(no)
#! /bin/sh
-# From configure.in Revision: 18740 .
+# From configure.in Revision: 18771 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for deal.II 6.2.0.
#
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+ template <typename T>
+ struct IsInt
+ {
+ private:
+ struct yes_type { char c[1]; };
+ struct no_type { char c[2]; };
-int
-main ()
-{
+ static yes_type check_for_int (const int *);
-template <typename T>
-struct IsInt
-{
- private:
- struct yes_type { char c[1]; };
- struct no_type { char c[2]; };
+ static no_type check_for_int (...);
- template <typename T>
- static yes_type check_for_int (const T *);
+ public:
+ static const bool value = (sizeof(check_for_int((T*)0))
+ ==
+ sizeof(yes_type));
+ };
- static no_type check_for_int (...);
+ const bool x = IsInt<double>::value;
- public:
- static const bool value = (sizeof(check_for_block_matrix
- ((MatrixType*)0))
- ==
- sizeof(yes_type));
-};
+int
+main ()
+{
-const bool x = IsInt<double>::value;
;
return 0;