summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-12 16:13:52 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-12 17:52:31 +0200
commitd72c1f1f0a906c4db8d9a74dd3f252a8137fd781 (patch)
tree42bcf3abafb89f4734f3a011a0eab6783a521030 /configure.ac
parentba45d25420ea0692db78677d6e994dfaaf295604 (diff)
HAVE_CXX11_PERFECT_FORWARDING is required on all supported toolchains
Change-Id: I8f4d7f8ebdfa0fb2c5a8efc676d1f66876b6daa9
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac22
1 files changed, 0 insertions, 22 deletions
diff --git a/configure.ac b/configure.ac
index 49bc0fc63497..a3c4eca8cbf6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6191,28 +6191,6 @@ CXXFLAGS=$save_CXXFLAGS
AC_SUBST(CXXFLAGS_CXX11)
-dnl ===================================================================
-dnl Check for C++11 perfect forwarding support
-dnl ===================================================================
-AC_MSG_CHECKING([whether $CXX supports C++11 perfect forwarding])
-save_CXXFLAGS=$CXXFLAGS
-CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11"
-AC_LANG_PUSH([C++])
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
- #include <utility>
- template<typename T, typename... Args> T * f(Args &&... v) {
- return new T(std::forward<Args>(v)...);
- }
- ]], [[
- f<int>(0);
- ]])], [perfect_forwarding=yes], [perfect_forwarding=no])
-AC_LANG_POP([C++])
-CXXFLAGS=$save_CXXFLAGS
-AC_MSG_RESULT([$perfect_forwarding])
-if test "$perfect_forwarding" = yes; then
- AC_DEFINE([HAVE_CXX11_PERFECT_FORWARDING])
-fi
-
AC_MSG_CHECKING([whether $CXX supports C++11 constexpr])
save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11"