branch:
details: http://enblend.hg.sourceforge.net/hgweb/enblend/enblend/hg/p/enblend/code/rev/6f2e65239bf0
changeset: 1540:6f2e65239bf0
user: Chris <cs...@us...>
date: Sat Nov 23 16:25:02 2019 +0100
description:
Drop the test for std::as_const<>
because C++17 unconditionally requires this template anyhow.
diffstat:
VERSION | 2 +-
configure.ac | 1 -
m4/ax_cxx_as_const.m4 | 41 -----------------------------------------
3 files changed, 1 insertions(+), 43 deletions(-)
diffs (62 lines):
diff -r 84b3d25e55eb -r 6f2e65239bf0 VERSION
--- a/VERSION Sat Nov 23 15:55:15 2019 +0100
+++ b/VERSION Sat Nov 23 16:25:02 2019 +0100
@@ -1,1 +1,1 @@
-4.3-85361528635a
+4.3-84b3d25e55eb
diff -r 84b3d25e55eb -r 6f2e65239bf0 configure.ac
--- a/configure.ac Sat Nov 23 15:55:15 2019 +0100
+++ b/configure.ac Sat Nov 23 16:25:02 2019 +0100
@@ -14,7 +14,6 @@
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX_11(ext)
-AC_CXX_AS_CONST
AC_PROG_CC
AC_PROG_AR
AM_PROG_AR
diff -r 84b3d25e55eb -r 6f2e65239bf0 m4/ax_cxx_as_const.m4
--- a/m4/ax_cxx_as_const.m4 Sat Nov 23 15:55:15 2019 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-# SYNOPSIS
-#
-# AX_CXX_AS_CONST
-#
-# DESCRIPTION
-#
-# If the C++ compiler supports std::as_const(), define HAVE_AS_CONST.
-#
-# LICENSE
-#
-# Copyright (c) 2015 Christoph L. Spiel <cs...@us...>
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved. This file is offered as-is, without any
-# warranty.
-
-#serial 1
-
-AU_ALIAS([AC_CXX_AS_CONST], [AX_CXX_AS_CONST])
-AC_DEFUN([AX_CXX_AS_CONST],
-[dnl
- AC_CACHE_CHECK([whether the compiler supports as_const()], ax_cv_cxx_as_const,
- [dnl
- AC_LANG_PUSH([C++])
- AC_COMPILE_IFELSE([dnl
- AC_LANG_PROGRAM(dnl
- [
-#include <string>
-#include <type_traits>
-#include <utility>
- ],
- [std::string s("foo");
-const std::string& const_s = std::as_const(s)])],
- ax_cv_cxx_as_const=yes,
- ax_cv_cxx_as_const=no)
- AC_LANG_POP([C++])
- ])
- AS_IF([test "X$ax_cv_cxx_as_const" = Xyes],
- [AC_DEFINE(HAVE_AS_CONST,,[define if the compiler supports as_const()])])
-])
|