aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-22 20:19:29 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-22 20:19:29 +0100
commit99ca317486703808bec65846a6266afdace5d0f7 (patch)
treea547aff8a970c9627f432de76b7cd9829a26aeca
parent8603d3262180a2771947801ce1d80cbd5092c989 (diff)
downloadpaludis-99ca317486703808bec65846a6266afdace5d0f7.tar.gz
paludis-99ca317486703808bec65846a6266afdace5d0f7.tar.xz
Require rvalue refs
-rw-r--r--configure.ac6
-rw-r--r--paludis/util/make_named_values.hh13
2 files changed, 2 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac
index 0bf41ee..f531119 100644
--- a/configure.ac
+++ b/configure.ac
@@ -791,11 +791,9 @@ int f(int && a)
return a;
}
],
- [AC_MSG_RESULT([yes])
- PALUDIS_CXXFLAGS="${PALUDIS_CXXFLAGS} -DPALUDIS_HAVE_RVALUE_REFERENCES=1"
- PALUDIS_PC_CFLAGS="${PALUDIS_PC_CFLAGS} -DPALUDIS_HAVE_RVALUE_REFERENCES=1"
- ],
+ [AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
+ AC_MSG_ERROR([your compiler does not support c++0x rvalue references])
])
dnl }}}
diff --git a/paludis/util/make_named_values.hh b/paludis/util/make_named_values.hh
index 0210576..9e0dbe3 100644
--- a/paludis/util/make_named_values.hh
+++ b/paludis/util/make_named_values.hh
@@ -30,25 +30,12 @@
namespace paludis
{
-#ifdef PALUDIS_HAVE_RVALUE_REFERENCES
-
template <typename R_, typename... T_>
R_ make_named_values(T_ && ... a)
{
R_ result = { a... };
return result;
}
-
-#else
-
- template <typename R_, typename... T_>
- R_ make_named_values(const T_ & ... a)
- {
- R_ result = { a... };
- return result;
- }
-
-#endif
}
#endif