aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-04-25 12:59:15 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-04-25 12:59:15 +0000
commit837e53ecaee7d786c6c1890596796295f82ed8fa (patch)
tree6d7badc758daccf78cf822bd5ddc25ffbf31cbe0
parent99d16b895b86271b3a2f85fbe200f1357149868f (diff)
downloadpaludis-837e53ecaee7d786c6c1890596796295f82ed8fa.tar.gz
paludis-837e53ecaee7d786c6c1890596796295f82ed8fa.tar.xz
3.4 can't use extern template
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f5e932b..6bae47e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -526,8 +526,13 @@ dnl {{{ check whether we can do extern template
CAN_USE_EXTERN_TEMPLATE=
AC_MSG_CHECKING([whether we can use extern template])
AC_COMPILE_IFELSE([
-template <typename T_> struct S { };
+template <typename T_> class S
+{
+ private:
+ S & operator= (const S &);
+};
extern template struct S<int>;
+template struct S<int>;
],
[AC_MSG_RESULT([yes])
CAN_USE_EXTERN_TEMPLATE=yes